how to conver a 24bit bmp file to 1bit bmp file?
i do it like this,can run on delphi,but no effect in lazarus:
bmp:=TBitmap.Create;
bmp.LoadFromFile('a.bmp');
bmp.PixelFormat:=pfDevice;
bmp.PixelFormat:=pf1bit;
bmp.SaveToFile('oo.bmp');
bmp.Free;
how can i do?