Version

ColorUtil Class Members

The following tables list the members exposed by ColorUtil.

Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)ColorToIntConverts a color to its integer representation for use in bitmaps.  
Public Methodstatic (Shared in Visual Basic)ColorToString  
Public Methodstatic (Shared in Visual Basic)FromAHSLGets a color from the specified ahsl components  
Public Methodstatic (Shared in Visual Basic)FromAHSVGets a color from the specified ahsv components  
Public Methodstatic (Shared in Visual Basic)FromArgbOverloaded. Converts ARGB integer to a Color, e.g. -65536 (red pixel)  
Public Methodstatic (Shared in Visual Basic)FromBrushConvert a Brush to a Color object  
Public Methodstatic (Shared in Visual Basic)FromHexConverts color hex string to a Color, e.g. '#AARRGGBB', '#RRGGBB', or '#RGB'  
Public Methodstatic (Shared in Visual Basic)FromRGBConverts RGB string a Color, e.g. 'RGB, R,G,B'  
Public Methodstatic (Shared in Visual Basic)FromRGBAConverts RGBA string a Color, e.g. 'RGBA, R,G,B,A',  
Public Methodstatic (Shared in Visual Basic)FromStringConverts string format to a Color, e.g. 'DodgerBlue', '#AARRGGBB', '#RRGGBB', 'RGBA, R,G,B,A', or 'RGB, R,G,B'  
Public Methodstatic (Shared in Visual Basic)GetAHSLGets the ahsl components of this color  
Public Methodstatic (Shared in Visual Basic)GetAHSVGets the ahsv components of this color  
Public Methodstatic (Shared in Visual Basic)GetAHSVInterpolationGet an interpolated color between two colors.  
Public Methodstatic (Shared in Visual Basic)GetColorReturns the main color of the given brush.  
Public Methodstatic (Shared in Visual Basic)GetInterpolationGet an interpolation from the current color to the specified color  
Public Methodstatic (Shared in Visual Basic)GetL  
Public Methodstatic (Shared in Visual Basic)GetLightenedGets a new color corresponding to this color darkened or lightened by specified amount  
Public Methodstatic (Shared in Visual Basic)GetRandomColorGet a random color from generated array of colors.  
Public Methodstatic (Shared in Visual Basic)GetSaturatedGets a new color corresponding to this color saturated by a specified amount  
Public Methodstatic (Shared in Visual Basic)GetsRGB  
Public Methodstatic (Shared in Visual Basic)RandomColorReturns a random color.  
Public Methodstatic (Shared in Visual Basic)RandomHueGet a random color  
Public Methodstatic (Shared in Visual Basic)RGBAToRGB  
Public Methodstatic (Shared in Visual Basic)ToGrayscale  
See Also