TSCARBitmap.Width

From SCAR Divi Manual
Revision as of 11:46, 26 October 2012 by Freddy (talk | contribs) (Created page with "==Definition== Member of TSCARBitmap, read/write, default -1.<source lang="scar" lines="false"> property TSCARBitmap.Width: Integer; </source> ==Availability== SCAR Divi ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

Member of TSCARBitmap, read/write, default -1.
property TSCARBitmap.Width: Integer;

Availability

SCAR Divi 3.35 > Current

Description

This property returns the width of the bitmap. When assigned, you can change the width of the bitmap canvas. Assigning to it will also clear the bitmap canvas.

Example

var
  Bmp: TSCARBitmap;
   
begin
  Bmp := TSCARBitmap.Create('deNoTYBBg+M/wnwCKjwchgsrgip/e+X/5D' +
    'DFausEApHjfjv/LF+HXAlIJBiAGUPGEHjzq4YofPXp04sQJEBe34pPNCv+/3Aa' +
    'qgSiGWoFX8f83h/8/XAaxhUjF/693/D+XR5JikAjdFUPVE60Y6CNTU1MiFcPVA' +
    'wFQJUHFQARUCU0nRKZAEhEAWNcFGw==');   
  try                 
    WriteLn(Bmp.Width);
  finally
    Bmp.Free;
  end;
end.

See Also