Skip to main content

AlphaFormat Enum

Definition

Assembly:Avalonia.Base
Package:Avalonia

Describes how to interpret the alpha component of a pixel.

public enum AlphaFormat

Inheritance: Enum -> AlphaFormat

Fields

NameDescription
OpaqueAll pixels are stored as opaque.
PremulAll pixels have their alpha premultiplied in their color components.
UnpremulAll pixels have their color components stored without any regard to the alpha. e.g. this is the default configuration for PNG images.

Opaque Field

All pixels are stored as opaque.

public Avalonia.Platform.AlphaFormat Opaque

Premul Field

All pixels have their alpha premultiplied in their color components.

public Avalonia.Platform.AlphaFormat Premul

Unpremul Field

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

public Avalonia.Platform.AlphaFormat Unpremul