This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, April 19, 2006 4:19:46 AM(UTC)
Groups: Registered
Posts: 13
How to remove an added tiff image from the RastrerImageViewer Control, Because ..once if i loaded any image to the imagecontrole , im unable to remove the image from the control.
Is there any methor or property available to remove the image and to load another image in LeadTools ..
Thnaks,
kalyan
#2
Posted
:
Wednesday, April 19, 2006 6:04:16 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
Thank you for contacting LEADTOOLS.
It seems you are using the LEADTOOLS .Net programming interface. Is this correct?
If yes, to remove the loaded image from the RastrerImageViewer Control, you will need to do the following:
- In VB.Net:
+--------+
RasterImageViewer1.Image = Nothing
+--------+
- In C#:
+--------+
rasterImageViewer2.Image = null;
+--------+
After removing the image from the LEADTOOLS RastrerImageViewer Control, you can load a different image using the RasterCodecs.Load method as follows:
+---------------+
Leadtools.Codecs.RasterCodecs CodecsCommand;
CodecsCommand = new Leadtools.Codecs.RasterCodecs();
...
rasterImageViewer2.Image = null;
...
LeadImage = CodecsCommand.Load(@"c:\multipage.tif");
MessageBox.Show(LeadImage.PageCount.ToString());
rasterImageViewer2.Image = LeadImage;
+---------------+
Please let me know if this helps.
Regards,
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.