Skip to content

Commit

Permalink
also for Image GetPixel*
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Jan 3, 2024
1 parent 04bc741 commit 88c5ce3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/image/simba.image.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,8 @@ function TSimbaImage.GetPixel(X, Y: Integer): TColor;
begin
AssertInImage('GetPixel', X, Y);

Result := FData[Y * FWidth + X].ToColor();
with FData[Y * FWidth + X] do
Result := R or G shl G_BIT or B shl B_BIT;
end;

procedure TSimbaImage.SetPixel(X, Y: Integer; Color: TColor);
Expand Down

0 comments on commit 88c5ce3

Please sign in to comment.