TdxAlphaColors Record
Stores TdxAlphaColor equivalents of certain TColor values and provides a set of auxiliary color-related functions.
#Declaration
TdxAlphaColors = record
#Remarks
Designed to simplify work with TdxAlphaColor values and properties, the TdxAlphaColors type stores the following sets of TdxAlphaColor equivalents of TColor values:
The standard colors (Black, Maroon, Green, Olive, Purple, Teal, Gray, Silver, Red, Lime, Yellow, Blue, Fuchsia, Aqua, and White);
The web colors (Snow, Beige, Wheat, AliceBlue, Azure, BlanchedAlmond, Bisque, DarkRed, Coral, Brown, SaddleBrown, Sienna, RosyBrown, YellowGreen, Gold, LightGray, LightGreen, Aquamarine, SeaGreen, DarkBlue, DarkGreen, DarkCyan, DarkMagenta, DimGray, Cyan, SteelBlue, Magenta, and SkyBlue);
The special colors (Empty, Transparent, and Default).
In addition, the TdxAlphaColors type provides the following class functions:
Functions that return TdxAlphaColor equivalents of system TColor values (_3DDkShadow, _3DLight, ActiveBorder, ActiveCaption, AppWorkSpace, Background, BtnFace, BtnHighlight, BtnShadow, BtnText, CaptionText, GradientActiveCaption, GradientInactiveCaption, GrayText, Highlight, HighlightText, HotLight, InactiveBorder, InactiveCaption, InactiveCaptionText, InfoBk, InfoText, Menu, MenuBar, MenuHighlight, MenuText, ScrollBar, Window, WindowFrame, and WindowText);
Functions that extract specific color components from the TdxAlphaColor value (Alpha, B, G, and R);
Functions that convert the specified TdxAlphaColor value to the HSB representation of an RGB color model (GetHue, GetSaturation, and GetBrightness);
Functions that create TdxAlphaColor values based on other color values (Blend and FromArgb);
The function that picks a color similar to the specified reference color from the provided limited set of colors (CalculateNearestColor);
Informational functions (IsEmpty and IsTransparentOrEmpty);
Note
All Tdx