Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, April 25, 2011 12:30:37 PM(UTC)

RLenski  
RLenski

Groups: Registered
Posts: 12


I want to load an image through the web control interface and it works great with only a single page tiff file, but when I try to load a multipage tiff file the image flashes for each image file as it is loaded. Is there a way to load only the first page in the tiff file, either through a parameter or property? Leadtools version is 14.5. I currently load the image through the BitmapDataPath property. I know this can be done on the regular image Load() function by passing in the page number, but is there a property or function I am missing for the web interface? Here is my control:














Any help would be greatly appreciated.

Thanks,
Rich
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, April 26, 2011 4:56:36 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Rich,
The BitmapDataPath loads all pages of a multipage file into the BitmapList property. You cannot select to load the first page alone since it automatically loads all of them.
If you want to load only the first page, you need to either use the Load() method, or force the BitmapDataPath loading to fail after the first page.

To make it fail, here's a VB6 code sample:
LEAD1.EnableFilePageLoadedEvent = True
On Error Resume Next
LEAD1.BitmapDataPath = "e:\TestFolder\MulPage.tif"

You then need to code the FilePageLoaded event handler like this:
Private Sub LEAD1_FilePageLoaded()
   LEAD2.Bitmap = LEAD1.Bitmap 'store the page into a second LEAD control
   LEAD1.BitmapDataPath = "" 'Make it fail
End Sub

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.105 seconds.