FastGetPixel

From SCAR Divi Manual
Revision as of 02:37, 4 November 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function FastGetPixel(const Bmp, x, y: Integer): Integer;

Availability

SCAR Divi 3.00 > 3.34

Description

Returns the color at the given coordinate (x, y) on the bitmap given by the index b.

Example

var
  b, c: Integer;

begin
  b := BitmapFromString(1, 1, '');
  FastSetPixel(b, 0, 0, 123456);
  c := FastGetPixel(b, 0, 0);
  WriteLn(c);
end.

Output:

123456

See Also