RelativeRectangle

RelativeRectangle

概要

RelativeRectangle は Aspose.3D の FOSS における Python 用クラスです。

相対矩形

The formula between relative component to absolute value is:

Scale * (Reference Width) + offset

So if we want it to represent an absolute value, leave all scale fields zero, and use offset fields instead.

このクラスは Python プログラムにおける RelativeRectangle オブジェクト用に 2 つのメソッドを宣言しています。利用可能なメソッドは __init__、to_absolute です。Aspose.3D の Python 用 FOSS パッケージをインストールすれば、すべてのパブリックメンバーは任意の Python アプリケーションからアクセス可能です。プロパティ: offset_height、offset_width、offset_x、offset_y、scale_height、scale_width、およびその他 2 つ。

プロパティ

名前型アクセス説明
scale_xfloat読み取り/書き込みスケール x を取得または設定します。
scale_yfloat読み取り/書き込みscale y を取得または設定します。
scale_widthfloat読み取り/書き込みスケール幅を取得または設定します。
scale_heightfloat読み取り/書き込みスケールの高さを取得または設定します。
offset_xint読み取り/書き込みオフセット x を取得または設定します。
offset_yint読み取り/書き込みオフセット y を取得または設定します。
offset_widthint読み取り/書き込みオフセット幅を取得または設定します。
offset_heightint読み取り/書き込みオフセットの高さを取得または設定します。

メソッド

シグネチャ説明
__init__(left: int, top: int, width: int, height: int)Calls initこの RelativeRectangle インスタンス上の (left, top, width, height).
to_absolute(left: int, top: int, width: int, height: int) → 'Rect'与えられた基準値を使用して absolute rectangle に変換する

参照

 日本語