Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, April 19, 2006 4:19:46 AM(UTC)
kalyanchakri

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

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, April 19, 2006 6:04:16 AM(UTC)
Maen Hasan

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.050 seconds.