-
DescriptionI would like to export a grayscale MagickImage as a windows bitmap (.bmp).
If I directly write a bitmap ( Steps to ReproduceI uploaded a sample program that creates the described 256 shades of gray image and exports it as a bitmap. QuestionAm I doing the Palette setting correctly, or do I have to do another thing in order to prevent a loss of pixel precision? System Configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When you set the img.Quantize(new QuantizeSettings()
{
DitherMethod = DitherMethod.No,
Colors = 256,
}); |
Beta Was this translation helpful? Give feedback.
When you set the
ColorType
of the image toPalette
the colors will be reduced with dithering enabled. You can prevent that from happening by reducing the colors yourself with the following command: