GetBitmapAreaColors

From SCAR Divi Manual
Revision as of 03:00, 25 July 2012 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

function GetBitmapAreaColors(xs, ys, xe, ye: Integer): T2DIntArray;

Availability

SCAR Divi 3.00 > 3.35

Description

Returns a T2DIntArray filled with all of the colors in the area specified by the upper-left coordinate (xs, ys) and the lower-right coordinate (xe, ye) of the currently selected client window. The resulting array is specified as Array[x][y].

Example

var
  iaa: T2DIntArray;

begin
  iaa := GetBitmapAreaColors(0, 0, 40, 30);
  WriteLn(iaa[38][20]);
end.