- addAlpha
uint addAlpha(uint color, uint alpha)
applies additional alpha to color
- blendARGB
uint blendARGB(uint dst, uint src, uint alpha)
blend two RGB pixels using alpha
- blendAlpha
uint blendAlpha(uint a1, uint a2)
blend two alpha values 0..255 (255 is fully transparent, 0 is opaque)
- blendGray
ubyte blendGray(ubyte dst, ubyte src, uint alpha)
blend two RGB pixels using alpha
- blendSubpixel
void blendSubpixel(ubyte* dst, ubyte* src, uint alpha, int x0, SubpixelRenderingMode mode)
blend subpixel using alpha
- decodeCSSColor
uint decodeCSSColor(string s, uint defValue)
Undocumented in source. Be warned that the author may not have intended to support it.
- decodeHexColor
uint decodeHexColor(string s, uint defValue)
decode color string supported formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB, rgb(r,g,b), rgba(r,g,b,a), rgba(r,g,b,a%)
- isFullyTransparentColor
bool isFullyTransparentColor(uint color)
returns true if color is #FFxxxxxx (color alpha is 255)
- makeRGBA
uint makeRGBA(T r, T g, T b, T a)
Undocumented in source. Be warned that the author may not have intended to support it.
- rgbToGray
ubyte rgbToGray(uint color)
Undocumented in source. Be warned that the author may not have intended to support it.
- subpixelComponentIndex
int subpixelComponentIndex(int x0, SubpixelRenderingMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- transformComponent
uint transformComponent(int src, int addBefore, int multiply, int addAfter)
Undocumented in source. Be warned that the author may not have intended to support it.
- transformRGBA
uint transformRGBA(uint src, uint addBefore, uint multiply, uint addAfter)
Undocumented in source. Be warned that the author may not have intended to support it.
This module contains declaration of useful color related operations.
In dlangui, colors are represented as 32 bit uint AARRGGBB values.
Synopsis: