dx: int = 1
dy: int = 1
scale: int = 1
- transpose_xy: bool = False
+ width: int = 0
+ height: int = 0
mirror_x: bool = False
mirror_y: bool = False
+ transpose_xy: bool = False
@dataclass
cached_colorspace_grayscale: bool = False
transparent: bool = False
- def rgba(self) -> tuple[int, int, int, int]:
- """Return the color as a tuple of red, green, blue, alpha"""
- return (
- self.rgb888 >> 16,
- (self.rgb888 >> 8) & 0xFF,
- self.rgb888 & 0xFF,
- 0 if self.transparent else 0xFF,
- )
+
+null_transform = TransformStruct() # Use defaults