SKAlphaType Enum


Describes how to interpret the alpha component of a pixel.

public enum SKAlphaType


Opaque 1

All pixels are stored as opaque.

Premul 2

All pixels have their alpha premultiplied in their color components.

This is the natural format for the rendering target pixels.

Unknown 0
Unpremul 3

All pixels have their color components stored without any regard to the alpha. e.g. this is the default configuration for PNG images.

This alpha-type is ONLY supported for input images. Rendering cannot generate this on output.

Applies to