[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCanvas.Width

The Width of the Canvas.

Declaration

Source position: graphics.pp line 1186

published property TCanvas.Width : Integer
  read GetWidth;

Description

Width is a read-only Integer property which contains the horizontal dimension in Pixels for the canvas drawing area. Height and Width determine the limits for the 2-dimensional coordinate system used to access the Pixels on the drawing surface.

The value for the property is determined by calling the GetDeviceSize routine using the Handle for the class instance. The property value is 0 (zero) when Handle has not been assigned (contains 0).

Use Height to get the vertical dimension for the drawing surface.

Remark: Changing the value for Height or Width in TCanvas is not allowed. These values are controlled using the capabilities in an image format or output device, and are normally handled in classes which implement the canvas.

See also

TCanvas.Height

  

Height of the canvas.


Version 3.2 Generated 2024-02-25 Home