RelativeRectangle

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

NameTypeAccessDescription
ScaleXfloat阅读/写作得到或设置尺度x.
ScaleYfloat阅读/写作得到或设置尺度y.
ScaleWidthfloat阅读/写作得到或设置尺度宽.
ScaleHeightfloat阅读/写作得到或设置尺度高度.
OffsetXint阅读/写作得到或设置了对位移x.
OffsetYint阅读/写作得到或设置y的偏差.
OffsetWidthint阅读/写作得到或设置偏移宽度.
OffsetHeightint阅读/写作得到或设置偏移高度.

Methods

SignatureDescription
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()返回矩形的字符串表示

See Also

 中文