FMX.Graphics.TCanvas.Width

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Width: Integer read FWidth;

C++

__property int Width = {read=FWidth, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TCanvas

Description

Specifies the width of the drawing area of the TCanvas.

The width and height of TCanvas are specified in logical units, depending on the device's scale. For example, if the display size is 1920x1080 with Scale of 3, the actual returned size is 640x360. Note that the actual display size excludes the status bar and possibly soft buttons.

The Width is set when the TCanvas is created. If the TCanvas is created from a bitmap, it will have the same size as the bitmap. To explicitly set the TCanvas size, create it by using CreateFromWindow.

See Also