RelativeRectangle

RelativeRectangle

General

RelativeRectangle és una estructura en Aspose.3D FOSS per a .NET.

RelativeRectangle.RelativeRectangle crea un rectangle amb l’esquerra, la part superior, el ampli i les altures d’offset.

Propietats

NameTypeAccessDescription
ScaleXfloatRead/WriteGets the horizontal scale factor of the rectangle
ScaleYfloatRead/WriteGets the vertical scale factor of the rectangle
ScaleWidthfloatRead/WriteGets the width scale factor of the rectangle
ScaleHeightfloatRead/WriteGets the height scale factor of the rectangle
OffsetXintRead/WriteGets the horizontal offset (left) of the rectangle
OffsetYintRead/WriteGets the vertical offset (top) of the rectangle
OffsetWidthintRead/WriteGets the width offset of the rectangle
OffsetHeightintRead/WriteGets the height offset of the rectangle

Mètodes

SignatureDescription
RelativeRectangle(left: int, top: int, width: int, height: int)Creates a rectangle with given left, top, width, and height offsets
ToAbsolute(left: int, top: int, width: int, height: int)Converts the relative rectangle to absolute coordinates using provided base left, top, width, and height
FromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float)Creates a relative rectangle from scale factors for X, Y, width, and height
ToString()Returns a string representation of the rectangle’s values
 Català