Hello,
I have version 6.0.0, when I convert to grayscale (ie8g) and try to save to file, I get a monochrome image!!
here is my code:
ImageEnView1.IO.LoadFromFileAuto('d:\test_image_24RGB.jpg');
ImageEnView1.IEBitmap.PixelFormat := ie8g;
ImageEnView1.IEBitmap.Write('d:\test_image_8g.png');
I took a look into TIEBitmap.Write and I saw:
ie8g:
begin
io.Params.BitsPerSample := 1;
io.Params.SamplesPerPixel := 1;
io.Params.JPEG_ColorSpace := ioJPEG_GRAYLEV;
end;
but, shouldn't be io.Params.BitsPerSample := 8?
I have tried to modify the source and it seems to work..
I have also added defaults for J2000 and TGA (just in case):
io.Params.J2000_ColorSpace := ioJ2000_GRAYLEV;
io.Params.TGA_GrayLevel := true;
Is this problem addressed in 6.2.2?
thank you in advance
Matteo