We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Load RasterImage from System.Drawing.Bitmap?

Hi,

I need load RasterImage from instance of System.Drawing.Bitmap ?
What’s is best pratice for that with Aspose Imaging?

thank in advance

@ThomasNk,

I have observed your requirements and suggest you to please visit this API reference link for your convenience. Please share, if I may help you further in this regard.

To load image with AsposeNET, there are static method in Image Class :

I can’t load RasterImage with System.Drawing.Bitmap?

  • Image.Load(stream)
  • Image.Load(string)
  • Image.Load(Drawing.Bitmap) < ---- Doesn’t exist!

I use two methods :
-> save Bitmap in a file and call Image.Load(string)
-> save Bitmap in a MemoryStream and call Image.Load(stream)

I already searched in API. But I don’t find a more elegant solution to load a RasterImage.

@ThomasNk,

Have you tried using the example in shared over API reference link that I have shared. Can you please share the source image that you ought to load using Aspose.Imaging. I will investigate that further on our end to help you out.