FMX.Printer.TPrinterDevice.SelectDPI

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SelectDPI(X, Y: Integer): Integer; overload;
function SelectDPI(DPI: TPoint): Integer; overload; inline;

C++

int __fastcall SelectDPI(int X, int Y)/* overload */;
int __fastcall SelectDPI(const System::Types::TPoint &DPI)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Printer.pas
FMX.Printer.hpp
FMX.Printer TPrinterDevice

Description

Selects the DPI that best fits the requested DPI and activates it.

SelectDPI returns the index of the selected DPI. You can use either one of the SelectDPI overloaded methods to activate the best fit DPI and change the value of ActiveDPIIndex.

The first SelectDPI overloaded method accepts the number of horizontal and vertical pixels as individual parameters (X and Y) while the second SelectDPI overloaded method takes in the number of pixels as a TPoint value.

See Also