Browse Source

Add documentation for alpha format.

pull/4106/head
Dariusz Komosinski 6 years ago
parent
commit
776ffbcbdc
  1. 12
      src/Avalonia.Visuals/Platform/AlphaFormat.cs

12
src/Avalonia.Visuals/Platform/AlphaFormat.cs

@ -1,9 +1,21 @@
namespace Avalonia.Platform
{
/// <summary>
/// Describes how to interpret the alpha component of a pixel.
/// </summary>
public enum AlphaFormat
{
/// <summary>
/// All pixels have their alpha premultiplied in their color components.
/// </summary>
Premul,
/// <summary>
/// All pixels have their color components stored without any regard to the alpha. e.g. this is the default configuration for PNG images.
/// </summary>
Unpremul,
/// <summary>
/// All pixels are stored as opaque.
/// </summary>
Opaque
}
}

Loading…
Cancel
Save