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_x | float | 読み取り/書き込み | スケール x を取得または設定します。 |
scale_y | float | 読み取り/書き込み | scale y を取得または設定します。 |
scale_width | float | 読み取り/書き込み | スケール幅を取得または設定します。 |
scale_height | float | 読み取り/書き込み | スケールの高さを取得または設定します。 |
offset_x | int | 読み取り/書き込み | オフセット x を取得または設定します。 |
offset_y | int | 読み取り/書き込み | オフセット y を取得または設定します。 |
offset_width | int | 読み取り/書き込み | オフセット幅を取得または設定します。 |
offset_height | int | 読み取り/書き込み | オフセットの高さを取得または設定します。 |
メソッド
| シグネチャ | 説明 |
|---|---|
__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 に変換する |