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
| Name | Type | Access | Description |
|---|---|---|---|
ScaleX | float | Read/Write | Gets the horizontal scale factor of the rectangle |
ScaleY | float | Read/Write | Gets the vertical scale factor of the rectangle |
ScaleWidth | float | Read/Write | Gets the width scale factor of the rectangle |
ScaleHeight | float | Read/Write | Gets the height scale factor of the rectangle |
OffsetX | int | Read/Write | Gets the horizontal offset (left) of the rectangle |
OffsetY | int | Read/Write | Gets the vertical offset (top) of the rectangle |
OffsetWidth | int | Read/Write | Gets the width offset of the rectangle |
OffsetHeight | int | Read/Write | Gets the height offset of the rectangle |
Mètodes
| Signature | Description |
|---|---|
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 |