From 776ffbcbdcb6eaa8e32f989a7527bc8a201362dc Mon Sep 17 00:00:00 2001 From: Dariusz Komosinski Date: Thu, 30 Jul 2020 23:34:09 +0200 Subject: [PATCH] Add documentation for alpha format. --- src/Avalonia.Visuals/Platform/AlphaFormat.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Avalonia.Visuals/Platform/AlphaFormat.cs b/src/Avalonia.Visuals/Platform/AlphaFormat.cs index ce8dcde728..3ef8fe9520 100644 --- a/src/Avalonia.Visuals/Platform/AlphaFormat.cs +++ b/src/Avalonia.Visuals/Platform/AlphaFormat.cs @@ -1,9 +1,21 @@ namespace Avalonia.Platform { + /// + /// Describes how to interpret the alpha component of a pixel. + /// public enum AlphaFormat { + /// + /// All pixels have their alpha premultiplied in their color components. + /// Premul, + /// + /// All pixels have their color components stored without any regard to the alpha. e.g. this is the default configuration for PNG images. + /// Unpremul, + /// + /// All pixels are stored as opaque. + /// Opaque } }