animator.skia.AlphaType

class animator.skia.AlphaType

Bases: pybind11_builtins.pybind11_object

Members:

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_AlphaType

kOpaque_AlphaType

kPremul_AlphaType

kUnknown_AlphaType

kUnpremul_AlphaType

name

value

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 AlphaType is kOpaque_AlphaType, and ColorType is not opaque, then the result of drawing any pixel with a alpha value less than 1.0 is undefined.

property name