animator.skia.AlphaType¶
- class animator.skia.AlphaType¶
Bases:
pybind11_builtins.pybind11_objectMembers:
kUnknown_AlphaType
kOpaque_AlphaType
kPremul_AlphaType
kUnpremul_AlphaType
kLastEnum_AlphaType
- __init__(self: animator.skia.AlphaType, value: int) None¶
Methods
__init__(self, value)isOpaque(self)Returns true if this alpha type is opaque (kOpaque_AlphaType).
Attributes
kLastEnum_AlphaTypekOpaque_AlphaTypekPremul_AlphaTypekUnknown_AlphaTypekUnpremul_AlphaTypevalue- isOpaque(self: animator.skia.AlphaType) bool¶
Returns true if this alpha type is opaque (kOpaque_AlphaType).
kOpaque_AlphaType is a hint that the ColorType is opaque, or that all alpha values are set to their 1.0 equivalent. If
AlphaTypeis kOpaque_AlphaType, andColorTypeis not opaque, then the result of drawing any pixel with a alpha value less than 1.0 is undefined.
- property name¶