Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: RasterImageViewer: Changing the Image to Display
Started by riggson at 06-23-2008 9:21. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-23-2008, 9:21
riggson is not online. Last active: 5/27/2008 11:23:02 AM riggson

Top 500 Posts
Joined on 05-23-2008
Posts 11
RasterImageViewer: Changing the Image to Display
Reply Quote
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



   Report 
  06-23-2008, 15:58
jigar is not online. Last active: 7/24/2008 12:12:53 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 371
Re: RasterImageViewer: Changing the Image to Display
Reply Quote
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 Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: RasterImageViewer: Changing the Image to Display

Powered by Community Server, by Telligent Systems