Difference between revisions of "CreateBitmap"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function CreateBitmap(const Width, Height, Color: Integer): Integer; </source> ==Availability== SCAR Divi 3.33 > Current ==Des...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.33 > Current
+
SCAR Divi 3.33 > 3.34
  
 
==Description==
 
==Description==
Creates a bitmap with the dimensions given by '''Width''' and '''Height'''. After the bitmap has been created, it's filled up completely with a color given by '''Color'''.
+
Creates a bitmap with the dimensions given by '''Width''' and '''Height'''. After the bitmap has been created, it's filled up completely with a color given by '''Color'''. Throws an exception when the given dimensions or color are invalid.
  
 
==Example==
 
==Example==
Line 21: Line 21:
 
</source>
 
</source>
  
[[Category:Functions]]
+
[[Category:Deprecated Functions]]
[[Category:Bitmap Functions]]
 

Latest revision as of 01:36, 4 November 2012

Definition

function CreateBitmap(const Width, Height, Color: Integer): Integer;

Availability

SCAR Divi 3.33 > 3.34

Description

Creates a bitmap with the dimensions given by Width and Height. After the bitmap has been created, it's filled up completely with a color given by Color. Throws an exception when the given dimensions or color are invalid.

Example

var
  Bmp: Integer;

begin
  Bmp := CreateBitmap(500, 500, clMaroon);
  DebugBitmap(Bmp);
end.