-
-
Notifications
You must be signed in to change notification settings - Fork 432
Closed
Labels
Description
Since version 7.3 it seems 1 bit PCX conversion is broken. The resulting file is always 24 bit.
With version 7.2.10 and below this code works as expected:
public static Stream ToMonochrome(this Bitmap bitmap, int width, int height, int degrees)
{
var stream = new MemoryStream();
using (var img = new MagickImage(bitmap))
{
img.Resize(width, height);
img.Rotate(degrees);
img.Depth = 1;
img.Format = MagickFormat.Pcx;
img.ColorType = ColorType.Bilevel;
img.Write(stream);
}
stream.Position = 0;
return stream;
}
Am I missing something that changed?