TBitmap gets wrong pixel format when loading a 8bit gray image.
Original Reporter info from Mantis: sainimu78
-
Reporter name: fantangshan
Original Reporter info from Mantis: sainimu78
- Reporter name: fantangshan
Description:
TBitmap gets wrong pixel format when loading a 8bit gray image.
Steps to reproduce:
var
a:TPixelFormat;
pic:TPicture;
begin
pic := TPicture.Create;
pic.LoadFromFile('C:\Users\Administrator\Desktop\the_lab.bmp');
a := pic.Bitmap.PixelFormat;
end;
Mantis conversion info:
- Mantis ID: 32876
- OS: ubuntu 16.04, win32
- Platform: x86_64, win32
- Version: 1.9 (SVN)
- Fixed in revision: r56872 (#84369842)