While some posts in this topic are more current, this topic was posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, August 2, 2005 9:51:18 AM(UTC)
Groups: Registered
Posts: 3
How would I go about converting a windows image to an IRasterImage?
Thanks for the help.
#2
Posted
:
Tuesday, August 2, 2005 12:46:00 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Thank you for contacting LEADTOOLS. The RasterImage.FromDib Method will create a new IRasterImage from a specified Windows Bitmap.
#3
Posted
:
Wednesday, June 21, 2006 5:23:21 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Also, the RasterImage constructor is overloaded to accept a DOTNET Image object.
RasterImage img = new RasterImage(System.Drawing.Image);
#4
Posted
:
Tuesday, April 11, 2017 8:09:39 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
LEADTOOLS v19 has Leadtools.Drawing.RasterImageConverter class, which provides methods to convert Leadtools.RasterImage object to and from GDI and GDI+ image objects.
The following code shows how you can convert from GDI+ image to RasterImage object using LEADTOOLS v19 .NET classes:
+--------------------+
// Load a GDI+ image, convert to RasterImage
using(Image gdipImage = Image.FromFile(destFileName1))
{
// Convert to RasterImage
RasterImage leadImage = RasterImageConverter.ConvertFromImage(gdipImage, ConvertFromImageOptions.None)
}
+--------------------+
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.