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 : Monday, April 3, 2006 12:24:45 PM(UTC)

MrTouya  
MrTouya

Groups: Registered
Posts: 4


Hi Guys,

 

How do I convert an image loaded with codecs.Load("Image.tif") to a system.drawing.bitmap so that I can use the System.windows.forms.picturebox to display it?

Any help would be appreciated. I can't figure this one out!!

PS. I load the image with this line

Dim tempImage As IRasterImage = codecs.Load("image.tif")

THANKS

Stephane Touya

 

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 5, 2006 9:01:58 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


Stephane,

You could use our RasterImageViewer control to display the image
directly without converting to a System.windows.forms.picturebox control. The syntax is direct like this:
RasterImageViewer1.Image = codecs.Load("image.tif")


If you want to convert from/to System.Drawing.Image anyway, see the code sample for the RasterImage.ChangeToGdiPlusImage Method help topic.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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-2020, Yet Another Forum.NET
This page was generated in 0.043 seconds.