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

TCanvas.Height

Height of the canvas.

Declaration

Source position: graphics.pp line 1183

published property TCanvas.Height : Integer
  read GetHeight;

Description

Height is a read-only Integer property which contains the vertical 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 Width to get the horizontal 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.Handle

  

Handle (or device context) for the drawing surface.

TCanvas.Width

  

The Width of the Canvas.

TCanvas.Pixels

  

The color of the Pixels located at the specified position.

GetDeviceSize

  


Version 3.2 Generated 2024-02-25 Home