Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I need to save a monochromatic (only black/white NOT grayscale) bitmap using c#. I need this cause the printer only supports monochromatic images. The problem is when I save the image, ‘cause the image already in black-white what I do is resize and rewrite it. I see/search several examples but not work for me. I tried with PixelFormat.Format1bppIndexed and InterpolationMode but the .NET Compact Framework doesnt support it, any idea?

Regards.
Posted
Comments
Sergey Alexandrovich Kryukov 1-Nov-13 20:16pm    
Not clear. If the image is already black-and-white, how can you possibly make it "more monochromatic"? And why would you resize it?
Note that transformation from color or grayscale to monochromatic has big number of solutions (say, for grayscale-to-black-and-white, 2^8 or 2^16 different solutions, formally speaking). Do you understand why?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900