Using gflSetColorAt function for monochromatic raster

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

igeka_szef
Posts: 1
Joined: Mon Jul 28, 2008 2:02 pm

Using gflSetColorAt function for monochromatic raster

Post 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?
User avatar
xnview
Author of XnView
Posts: 44325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Using gflSetColorAt function for monochromatic raster

Post by xnview »

Ok right, i'll fix
Pierre.