Page 1 of 1

Using gflSetColorAt function for monochromatic raster

Posted: Mon Jul 28, 2008 2:29 pm
by igeka_szef
I have problem with monochromatic raster (BitsPerComponent=1) when I use gflSetColorAt set color function. When I use function like that:

GFL_BITMAP *bmp;

GFL_COLOR col;
col.Red = 0;
col.Green = 0;
col.Blue = 0;
col.Alpha = 0;

int x, y;

gflSetColorAt( bmp, x, y, &col );

the function filled 8 pixels insteed of one.

Maybe I should use this function for that kind of raster with another way. Please tel me HOW?

Re: Using gflSetColorAt function for monochromatic raster

Posted: Mon Jul 28, 2008 3:06 pm
by xnview
Ok right, i'll fix