LEADTOOLS Support
General
General Questions
Load Internet Image Multipage Tiff File First Only
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, April 25, 2011 12:25:37 PM(UTC)
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
#2
Posted
:
Tuesday, April 26, 2011 4:51:36 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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
LEADTOOLS Support
General
General Questions
Load Internet Image Multipage Tiff File First Only
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.