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 FOSS for Python 패키지를 설치한 후에는 모든 Python 애플리케이션에서 공개 멤버에 접근할 수 있습니다. 속성: offset_height, offset_width, offset_x, offset_y, scale_height, scale_width, 및 2개가 더 있습니다.

속성

이름유형액세스설명
scale_xfloat읽기/쓰기스케일 x를 가져오거나 설정합니다.
scale_yfloat읽기/쓰기스케일 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(left, top, width, height) 이 RelativeRectangle 인스턴스에 있습니다.
to_absolute(left: int, top: int, width: int, height: int) → 'Rect'주어진 기준값을 사용하여 절대 사각형으로 변환합니다.

참조

 한국어