LEADTOOLS Support
Imaging
Imaging SDK Questions
Converting IRasterImage to System.Drawing.Bitmap
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, April 3, 2006 12:24:45 PM(UTC)
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
#2
Posted
:
Wednesday, April 5, 2006 9:01:58 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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 LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
LEADTOOLS Support
Imaging
Imaging SDK Questions
Converting IRasterImage to System.Drawing.Bitmap
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.