Vcl.Graphics.TFont.ChangeScale

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure ChangeScale(M, D: Integer; isDpiChange: Boolean); overload;
procedure ChangeScale(AHeight: Integer; M, D: Integer; isDpiChange: Boolean); overload;

C++

void __fastcall ChangeScale(int M, int D, bool isDpiChange)/* overload */;
void __fastcall ChangeScale(int AHeight, int M, int D, bool isDpiChange)/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFont


説明

ChangeScale メソッドは、画面 DPI が直接変更されたとき、またはアプリケーションの要求によって、フォントの Height を調整します。内部的には、TControl.ChangeScale メソッドは自動的に ChangeScale 呼び出します。

isDpiChange 引数が False の場合、Height のみがスケーリングされます。そうでなければ、フォントの Height は、PixelsPerInch プロパティを使用してスケーリングされます。詳細については、IsDPIRelated を参照してください。

関連項目