主题
Scale
Scaling configuration for an object.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
scale | Optional[Number] | None | scale_x and scale_y get the value of scale if scale is provided. |
scale_x | Optional[Number] | None | The scalar by which to multiply the x-axis. |
scale_y | Optional[Number] | None | The scalar by which to multiply the y-axis. |
alignment | Optional[Alignment] | None | Gives the origin of scale. |
origin | Optional['Offset'] | None | The origin of the coordinate system (relative to the upper left corner), in logical pixels. |
transform_hit_tests | bool | True | Whether to apply the transformation when performing hit tests. |
filter_quality | Optional['FilterQuality'] | None | The filter quality with which to apply this transform as a bitmap operation. |
方法
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
copy | 'Scale' | — | 返回此对象的副本,可覆盖指定属性。 |