Page 1 of 1

Converting 32-bit Windows Bitmap to MagickImage

Posted: 2015-05-31T20:08:49-07:00
by xpda
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 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)