Skip to content

Scale

Scaling configuration for an object.

属性 ​

名称类型默认值说明
scaleOptional[Number]Nonescale_x and scale_y get the value of scale if scale is provided.
scale_xOptional[Number]NoneThe scalar by which to multiply the x-axis.
scale_yOptional[Number]NoneThe scalar by which to multiply the y-axis.
alignmentOptional[Alignment]NoneGives the origin of scale.
originOptional['Offset']NoneThe origin of the coordinate system (relative to the upper left corner), in logical pixels.
transform_hit_testsboolTrueWhether to apply the transformation when performing hit tests.
filter_qualityOptional['FilterQuality']NoneThe filter quality with which to apply this transform as a bitmap operation.

方法 ​

名称类型默认值说明
copy'Scale'—返回此对象的副本,可覆盖指定属性。

关注我,学习大模型、大数据、Python等热门技术。