Difference between revisions of "FastSetPixel"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure FastSetPixel(bitmap: Integer; x, y: Integer; c : Integer); </source> ==Availability== SCAR Divi 3.00 > Current ==Des...")
(No difference)

Revision as of 02:35, 4 September 2011

Definition

procedure FastSetPixel(bitmap: Integer; x, y: Integer; c : Integer);

Availability

SCAR Divi 3.00 > Current

Description

Sets the color given by c 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