GetColors

From SCAR Divi Manual
Revision as of 16:47, 5 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetColors(Coords: TPointArray): TIntegerArray; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function GetColors(Coords: TPointArray): TIntegerArray;

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 TIntegerArray 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