Difference between revisions of "TSCARBitmap.Width"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== Member of TSCARBitmap, read/write, default -1.<source lang="scar" lines="false"> property TSCARBitmap.Width: Integer; </source> ==Availability== SCAR Divi ...")
 
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
Member of [[TSCARBitmap]], read/write, default -1.<source lang="scar" lines="false">
+
Member of [[TSCARBitmap]], read/write, default.<source lang="scar" lines="false">
 
property TSCARBitmap.Width: Integer;
 
property TSCARBitmap.Width: Integer;
 
</source>
 
</source>

Latest revision as of 12:47, 26 October 2012

Definition

Member of TSCARBitmap, read/write, default.
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