RelativeRectangle
Overview
RelativeRectangle 是一个在Aspose.3D FOSS中的结构.
RelativeRectangle.RelativeRectangle creates a rectangle with given left, top, width, height offsets.
这个结构提供了4种方法,用于在NET程序中与RelativeRectangle对象工作. 有的方法包括: FromScale, RelativeRectangle, ToAbsolute, ToString. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: OffsetHeight, OffsetWidth, OffsetX, OffsetY, ScaleHeight, ScaleWidth,另外两个.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ScaleX | float | 阅读/写作 | 得到或设置尺度x. |
ScaleY | float | 阅读/写作 | 得到或设置尺度y. |
ScaleWidth | float | 阅读/写作 | 得到或设置尺度宽. |
ScaleHeight | float | 阅读/写作 | 得到或设置尺度高度. |
OffsetX | int | 阅读/写作 | 得到或设置了对位移x. |
OffsetY | int | 阅读/写作 | 得到或设置y的偏差. |
OffsetWidth | int | 阅读/写作 | 得到或设置偏移宽度. |
OffsetHeight | int | 阅读/写作 | 得到或设置偏移高度. |
Methods
| Signature | Description |
|---|---|
RelativeRectangle(left: int, top: int, width: int, height: int) | 创建一个矩形给左,上,宽度,高度的偏移 |
ToAbsolute(left: int, top: int, width: int, height: int) | 使用所提供的容器尺寸将相对矩形转换为绝对坐标. |
FromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float) | 通过尺寸因子来创建一个矩形,以确定位置和大小. |
ToString() | 返回矩形的字符串表示 |