System.Types.TRectF.SnapToPixel

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

Delphi

function SnapToPixel(const AScale: Single; const APlaceBetweenPixels: Boolean = True): TRectF;

C++

TRectF SnapToPixel(float Scale,
                   bool PlaceBetweenPixels = true) const _ALWAYS_INLINE {

プロパティ

種類 可視性 ソース ユニット
function public
System.Types.pas
SystemTypes.h
System.Types TRectF


説明

現在の四角形の位置をサイズを、指定された AScale 値に丸めます。

  • AScale は、シーンのスケールです。
  • APlaceBetweenPixels は、デフォルトでは、True に設定されます。 PlaceBetweenPixelsTrue の場合、結果の TRectF はスケールの半分に移動します。

SnapToPixel は、変換後の現在の TRectF オブジェクトを返します。

関連項目