Your
GetRandom32BitMap function always returns a bitmap filled entirely with the hardcoded color, so you do not need
ScanLine here. The code below does exactly the same:
function GetRandom32BitMap(AX, AY: integer): TBitmap;
begin
Result := TBitmap.Create();
Result.Pixelformat := pf24bit;
Result.SetSize(AX, AY);
Result.Canvas.Brush.Color := $00A5FF;
Result.Canvas.FillRect(Result.Canvas.ClipRect);
end;
Besides, this function should be called
CreateColored24Bitmap, because this code creates a one-color 24-bit bitmap. Unless it's just an example, but it does not look like it.
Don't know about
ScanLine in Linux, I don't use this system.