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 : Tuesday, August 2, 2005 9:51:18 AM(UTC)

garyfis  
garyfis

Groups: Registered
Posts: 3


How  would I go about converting a windows image to an IRasterImage?

 

Thanks for the help.

 

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 : Tuesday, August 2, 2005 12:46:00 PM(UTC)

Otis  
Guest

Groups: Guests
Posts: 3,034

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)

Otis  
Guest

Groups: Guests
Posts: 3,034

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)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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.

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