c# - How store a bitmap converted to 1bpp to a monochrome bmp file on the Compact Framework? -
c# - How store a bitmap converted to 1bpp to a monochrome bmp file on the Compact Framework? -
after converting 24-bit bitmap 1-bit bitmap, run problem when store bitmap file 24-bit 1 time again , not 1-bit (monochrome) image.
i need 1-bit bitmap file sending bluetooth printer.
any ideas or code-snippets on how this?
edit: currently, i'm using next code save bitmap:
system.drawing.bitmap.save("path\filename.bmp", system.drawing.imaging.imageformat.bmp)
on net see couple of ways on compact framework:
in this related question saving 1bpp using compact framework, there's win32 api solution available saving 1bpp info disk. converting using pixelformat enum, may not work on compact framework. converting using win32 api, thorough explanation of code , total project available in zip. should work on compact framework, i'm not 100% sure whether apis available there.i don't have cf installation handy, otherwise would've tried solutions before posting them.
c# .net compact-framework
Comments
Post a Comment