Per the MSDN documentation, you cannot create a Graphics object from an
indexed bitmap.
You can use GDI. Create your 8 bpp bitmap as a DIB (i.e., CreateDIBSection)
and use BitBlt or any of the GDI variations to draw to your 8bpp bitmap.
"chapmjw" <chapmjw (AT) gmail (DOT) com> wrote
Quote:
Is it possilbe to use the Graphics object for drawing onto a bitmap
that is 8bit greyscale or 8bit indexed color.
My application has to create a huge bitmap and I need it as small as
possible.
Has anyone got a suggestion better than creating my own drawing
functions and drawing onto a byte array?
thanks
jim |