RelativeRectangle

RelativeRectangle

Overview

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

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

This struct provides 4 methods for working with RelativeRectangle objects in .NET programs. Available methods include: FromScale, RelativeRectangle, ToAbsolute, ToString. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: OffsetHeight, OffsetWidth, OffsetX, OffsetY, ScaleHeight, ScaleWidth, and 2 more.

Properties

NameTypeAccessDescription
ScaleXfloatRead/WriteGets or sets the scale x.
ScaleYfloatRead/WriteGets or sets the scale y.
ScaleWidthfloatRead/WriteGets or sets the scale width.
ScaleHeightfloatRead/WriteGets or sets the scale height.
OffsetXintRead/WriteGets or sets the offset x.
OffsetYintRead/WriteGets or sets the offset y.
OffsetWidthintRead/WriteGets or sets the offset width.
OffsetHeightintRead/WriteGets or sets the offset height.

Methods

SignatureDescription
RelativeRectangle(left: int, top: int, width: int, height: int)Creates a rectangle with given left, top, width, height offsets
ToAbsolute(left: int, top: int, width: int, height: int)Converts the relative rectangle to absolute coordinates using provided 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