LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterImageViewer: Changing the Image to Display
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, June 23, 2008 4:16:34 AM(UTC)
Groups: Registered
Posts: 11
Hi!
I've a little problem with displaying Images using the RasterImageViewer. I try to something like this
dim img1 as RasterImage ' multipage tiff file
dim img2 as RasterImage ' multipage tiff file
' loading 2 images
myViewer.Image = img1
myViewer.Image = img2
After that I try to access to img1 but I get an error message: "No pages in this image". If I debug img1 the pageCount and some other values are ok. But most values are "Reference not found!".
How can I "unload" img1 from the RasterImageViewer so that I can change the image source for the viewer?
Thanks
Riggson
#2
Posted
:
Monday, June 23, 2008 10:53:32 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The code you posted should be working as you would like. As long as you don't set img1 to Nothing, it should keep a valid reference to the object. Try setting myViewer.Image = img2 first, and then set it to img1, to see if it does the same thing for img2. It could be that somewhere else in your code img1 is being dereferenced. myViewer.Image is just an object and it'll reference any object you assign to it. If you assign a different object to myViewer.Image, it will just point to the new one. It will not destroy the previous object.
LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterImageViewer: Changing the Image to Display
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.