GetBitmapSize

From SCAR Divi Manual
Revision as of 22:26, 4 April 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure GetBitmapSize(const Bmp: Integer; out Width, Height: Integer); </source> ==Availability== SCAR Divi 3.00 > Current =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure GetBitmapSize(const Bmp: Integer; out Width, Height: Integer);

Availability

SCAR Divi 3.00 > Current

Description

Returns the dimensions of a bitmap specified by Bmp in Width and Height.

Example

var
  Bmp, W, H: Integer;

begin
  Bmp := CreateBitmap(500, 500, 0);
  GetBitmapSize(Bmp, W, H);
  WriteLn(IntToStr(W) + 'x' + IntToStr(H));
end.