Skip to main content

Scale

Scaling configuration for an object.

Properties

  • alignment - Gives the origin of scale.
  • filter_quality - The filter quality with which to apply this transform as a bitmap operation.
  • origin - The origin of the coordinate system (relative to the upper left corner), in logical pixels.
  • scale - scale_x and scale_y get the value of scale if scale is provided.
  • scale_x - The scalar by which to multiply the x-axis.
  • scale_y - The scalar by which to multiply the y-axis.
  • transform_hit_tests - Whether to apply the transformation when performing hit tests.

Methods

  • copy - Returns a copy of this object with the specified properties overridden.

Properties

alignmentclass-attributeinstance-attribute

alignment: Optional[Alignment] = None

Gives the origin of scale.

filter_qualityclass-attributeinstance-attribute

filter_quality: Optional[FilterQuality] = None

The filter quality with which to apply this transform as a bitmap operation.

originclass-attributeinstance-attribute

origin: Optional[Offset] = None

The origin of the coordinate system (relative to the upper left corner), in logical pixels.

scaleclass-attributeinstance-attribute

scale: Optional[Number] = None

scale_x and scale_y get the value of scale if scale is provided.

scale_xclass-attributeinstance-attribute

scale_x: Optional[Number] = None

The scalar by which to multiply the x-axis.

scale_yclass-attributeinstance-attribute

scale_y: Optional[Number] = None

The scalar by which to multiply the y-axis.

transform_hit_testsclass-attributeinstance-attribute

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.

Methods

copy

copy(scale: Optional[Number] = None, scale_x: Optional[Number] = None, scale_y: Optional[Number] = None, alignment: Optional[Alignment] = None, origin: Optional[Offset] = None, transform_hit_tests: Optional[bool] = None, filter_quality: Optional[FilterQuality] = None)

Returns a copy of this object with the specified properties overridden.