GetColors

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetColors(Coords: TPointArray): TIntArray;

Availability

SCAR Divi 3.00 > Current

Description

Gets the color of the pixels specified by the coordinates in the TPointArray Coords and returns them in a TIntArray with the same order.

Example

var
  i: Integer;
  ia: TIntegerArray;

begin
  ia := GetColors([Point(0, 5), Point(50, 78), Point(79, 47)]);
  for i := Low(ia) to High(ia) do
    WriteLn(ia[i]);
end.

See Also