Bitmap.Canvas.Pixels doesn't work and raises access violation
Original Reporter info from Mantis: sekelsenmat
-
Reporter name: Felipe Monteiro de Carvalho
Original Reporter info from Mantis: sekelsenmat
- Reporter name: Felipe Monteiro de Carvalho
Description:
After loading a very simple image from disk I try to access Pixels property and I get some nasty access violations.
Only tested on Linux. I tested with many bitmap images and all raise the errors.
Here is the test code (also attached with the used image):
program pixelbug;
uses Interfaces, SysUtils, Graphics, classes, forms;
var
Bitmap: TBitmap;
color: Cardinal;
begin
Bitmap := TBitmap.Create;
Bitmap.LoadFromFile('icon.bmp');
color := Bitmap.Canvas.Pixels[5, 5];
Bitmap.Free;
end.
Mantis conversion info:
- Mantis ID: 1661
- OS: Mandrake Linux
- OS Build: 10.2
- Platform: x86 intel
- Version: 0.9.11 (SVN)
- Fixed in version: 0.9.15 (SVN)
- Fixed in revision: 9342 (#a39c2c36)
- Target version: 1.0.0
- LazTarget: 1.0