RelativeRectangle

RelativeRectangle

Overview

RelativeRectangle is a struct in Aspose.3D FOSS for .NET.

RelativeRectangle.RelativeRectangle creates a rectangle with given left, top, width, and height offsets.

Properties

NameTypeAccessDescription
ScaleXfloatRead/WriteGets or sets the horizontal scale factor of the rectangle
ScaleYfloatRead/WriteGets or sets the vertical scale factor of the rectangle
ScaleWidthfloatRead/WriteGets or sets the width scale factor of the rectangle
ScaleHeightfloatRead/WriteGets or sets the height scale factor of the rectangle
OffsetXintRead/WriteGets or sets the left offset in pixels
OffsetYintRead/WriteGets or sets the top offset in pixels
OffsetWidthintRead/WriteGets or sets the rectangle width in pixels
OffsetHeightintRead/WriteGets or sets the rectangle height in pixels

Methods

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 container dimensions
FromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float)Creates a rectangle from scale factors for position and size
ToString()Returns a string representation of the rectangle

See Also