GS - copy_mono function
I am trying to modify a GS driver which implements the copy_mono
function (among others). If GS is run without the -dTextAlphaBits=4
flag then everything is fine, the bitmap created from copy_mono is OK,
but rough looking. If I use the -dTextAlphaBits=4 flag then the
'raster' variable in copy_mono increases, I take it this means that it
takes 4 bits to represent a pixel instead of the usual 1? If this is
the case, then why is copy_mono being called instead of copy_color as
we may be displaying with more than 2 colours? If I'm doing this right
and I still need to handle copy_mono even if TextAlphaBits=4 then what
pallete options do I use, the color0 and color1 local vars are now
meaningless. I'm trying to output a Windows .bmp structure, if anyone
has any ideas or example code I'd be very grateful.
Thanks,
Steve.
|