AlphaFormat Enum

Summary

Describes how to interpret the alpha component of a pixel.
Namespace
Avalonia.Platform
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["AlphaFormat"] class Type type-node

Syntax

public enum AlphaFormat

Fields

Name Constant Value Summary
Opaque 2
All pixels are stored as opaque.
static
Premul 0
All pixels have their alpha premultiplied in their color components.
static
Unpremul 1
All pixels have their color components stored without any regard to the alpha. e.g. this is the default configuration for PNG images.
static

Extension Methods