Archive

Posts Tagged ‘Colors’

DXCore Services – Color

September 27th, 2010 Comments off

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.

Read more…