06-23-2008, 15:58
|
jigar

Joined on 08-22-2007
Posts 371
|
Re: RasterImageViewer: Changing the Image to Display
|
 
 
|
|
|
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
|
|
|
|