C
colin
Hi,
I have all the components of a .bmp file in memory wich i need
to write to a .bmp file, (or other convenient image file)
ie i have 256 color pallete of RGBquads and array of 8bit pixels,
I can create a System.Drawing.Bitmap and it allows me to set the
witdh,height,bpp, and even the pixel data,
but it doesnt seem to let me set the color palette,
the palette property field is read/write
but requires a System.Drawing.Imaging.ColorPalette
but there seems to be no way of creating one of these,
there must be a way surly am I missing something or do
I have to go and create the wheel all over again and
write my own BITMAPFILEHEADER,BITMAPINFOHEADER,etc
and write those to the file ?
Colin =^.^=
I have all the components of a .bmp file in memory wich i need
to write to a .bmp file, (or other convenient image file)
ie i have 256 color pallete of RGBquads and array of 8bit pixels,
I can create a System.Drawing.Bitmap and it allows me to set the
witdh,height,bpp, and even the pixel data,
but it doesnt seem to let me set the color palette,
the palette property field is read/write
but requires a System.Drawing.Imaging.ColorPalette
but there seems to be no way of creating one of these,
there must be a way surly am I missing something or do
I have to go and create the wheel all over again and
write my own BITMAPFILEHEADER,BITMAPINFOHEADER,etc
and write those to the file ?
Colin =^.^=