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 FOSS for Python 패키지를 설치한 후에는 모든 Python 애플리케이션에서 공개 멤버에 접근할 수 있습니다. 속성: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width, 및 2개가 더 있습니다.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
scale_x | float | 읽기/쓰기 | 스케일 x를 가져오거나 설정합니다. |
scale_y | float | 읽기/쓰기 | 스케일 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(left, top, width, height) 이 RelativeRectangle 인스턴스에 있습니다. |
to_absolute(left: int, top: int, width: int, height: int) → 'Rect' | 주어진 기준값을 사용하여 절대 사각형으로 변환합니다. |