Skip to content

How to generate a monochrome bitmap with a bit depth of 1 in BMP format? #1619

Answered by dlemstra
jingxin2015 asked this question in Help
Discussion options

You must be logged in to vote

You should set image.ColorType to ColorType.Bilevel after you have called .Draw(image). This makes sure that the image becomes monochrome.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dlemstra
Comment options

Answer selected by jingxin2015
@jingxin2015
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants