Converting 32-bit Windows Bitmap to MagickImage

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
xpda
Posts: 5
Joined: 2015-05-22T14:19:16-07:00
Authentication code: 6789
Location: Pryor, OK

Converting 32-bit Windows Bitmap to MagickImage

Post by xpda » 2015-05-31T20:08:49-07:00

Is it possible to convert (in memory) a Windows bitmap with an Alpha channel to a MagickImage? When I try the following, it fails with formats Format32bppPARgb and Format32bppARgb, but works fine with Format24bppRgb. The error message is "no decode delegate for this image format `XWD'". (I'm a new Magick.net user, so it's very possible I'm missing something obvious.)

Code: Select all

bmp = New System.Drawing.Bitmap(400, 300, PixelFormat.Format32bppPARgb)
img = New MagickImage(bmp)

Post Reply