Just wondering if someone can tell me what I'm doing wrong here, I just can't seem to work this out, I keep getting errors.
function GetColorFromBmp(XX, YY: Integer; Bmp: TBitmap): TColor;
var
Line: PRGB32Array;
begin
Line := Bmp.ScanLine[YY];
Result := RGBtoColor(Line^[XX].R, Line^[XX].G, Line^[XX].B);
end;
procedure SetColorOnBmp(XX, YY: Integer; Color: TColor; Bmp: TBitmap);
var
Line: PRGB32Array;
begin
Line := Bmp.ScanLine[YY];
Line^[XX].R := GetRValue(Color);
Line^[XX].G := GetGValue(Color);
Line^[XX].B := GetBValue(Color);
end;