Difference between revisions of "FastGetPixel"
From SCAR Divi Manual
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function FastGetPixel( | + | function FastGetPixel(const Bmp, x, y: Integer): Integer; |
</source> | </source> | ||
Revision as of 20:57, 3 November 2011
Definition
function FastGetPixel(const Bmp, x, y: Integer): Integer;
Availability
SCAR Divi 3.00 > Current
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