SetTranslate
SVGTransform.SetTranslate method
将变换类型设置为 SVG_TRANSFORM_TRANSLATE,参数 tx 和 ty 定义平移量。
public void SetTranslate(float tx, float ty)
| 范围 | 类型 | 描述 |
|---|---|---|
| tx | Single | X 中的翻译量。 |
| ty | Single | Y 中的翻译量。 |
例外
| 例外 | (健康)状况 |
|---|---|
| DOMException | 代码NO_MODIFICATION_ALLOWED_ERR 在尝试更改只读属性的值时引发。 |
也可以看看
- class SVGTransform
- 命名空间 Aspose.Svg.DataTypes
- 部件 Aspose.SVG