Difference between revisions of "GetColors"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function GetColors(Coords: TPointArray): TIntegerArray; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Ge...") |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function GetColors(Coords: TPointArray): | + | function GetColors(Coords: TPointArray): TIntArray; |
</source> | </source> | ||
==Availability== | ==Availability== | ||
SCAR Divi 3.00 > Current | SCAR Divi 3.00 > Current | ||
+ | |||
+ | * Returned TIntegerArray before SCAR Divi 3.28. | ||
==Description== | ==Description== | ||
− | Gets the color of the pixels specified by the coordinates in the [[TPointArray]] '''Coords''' and returns them in a [[ | + | 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== | ==Example== |
Revision as of 10:15, 21 October 2011
Definition
function GetColors(Coords: TPointArray): TIntArray;
Availability
SCAR Divi 3.00 > Current
- Returned TIntegerArray before SCAR Divi 3.28.
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.