DXCore Services – Color
September 27th, 2010
The Color service provides methods for operations with a color, such as blending, brightening, inverting, etc.
Methods of this service:
Name | Description |
AdjustBrightness(Color, Int32) | Adjusts the brightness of a specified color by the specified amount. |
Blend(Color, Color) | Blends two colors to produce a third color. |
Blend(Color, Color, Byte) | Blends two colors to produce a third color with a specified percent of the first color. |
Invert(Color) | Inverts a color. |
IsMatch(Color, Color) | Determines if two colors are equivalent. |
IsMatch(Color, Color, Int32) | Determines if two colors are equivalent with the specified tolerance used in the comparison. |
ReloadColors | Loads custom color settings from storage. |
Properties:
Name | Description |
SyntaxHighlighting | Colors for syntax highlighting of CodeRush elements such as StringProvider, TextCommand, and Alias. |
VSDark | Returns a color one interval darker than the button shadow standard system color. |
VSLight | Returns a color one interval lighter than the button face standard system color. |
VSLightCaption | Returns a color one interval lighter than the active caption standard system color. |
VSMedium | Returns a color one interval darker than the button face standard system color. |