Upravit

Sdílet prostřednictvím


SKAlphaType Enum

Definition

Describes how to interpret the alpha component of a pixel.

public enum SKAlphaType
Inheritance
SKAlphaType

Fields

Name Value Description
Unknown 0
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.

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