Difference between revisions of "FastGetPixel"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function FastGetPixel(bitmap: Integer; x, y: Integer): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descript...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function FastGetPixel(bitmap: Integer; x, y: Integer): Integer;
+
function FastGetPixel(const Bmp, x, y: Integer): Integer;
 
</source>
 
</source>
  
 
==Availability==
 
==Availability==
SCAR Divi 3.00 > Current
+
SCAR Divi 3.00 > 3.34
  
 
==Description==
 
==Description==
Line 28: Line 28:
 
==See Also==
 
==See Also==
 
*[[FastSetPixel]]
 
*[[FastSetPixel]]
 +
*[[FastReplaceColor]]
 +
*[[FastReplaceColorTolerance]]
 +
*[[FastDrawTransparent]]
 +
*[[FastDrawSizeTransparent]]
 +
*[[FastDrawClear]]
  
[[Category:Functions]]
+
[[Category:Deprecated Functions]]
[[Category:Bitmap Functions]]
 

Latest revision as of 01:37, 4 November 2012

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