width_scale 属性

width_scale 属性

获取和设置宽度比例,单位为原始图片宽度的百分比。 如果形状不是图片,WidthScale 属性只返回 100;

例子


if shape.width_scale == 3:
    shape.width_scale = 1

定义:

@property
def width_scale(self):
    ...
@width_scale.setter
def width_scale(self, value):
    ...

也可以看看