C# Class SidebarLibrary.General.ColorUtil

Summary description for ColorConvert.
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Свойство Type Description
KnownColorNames string[]
SystemColorNames string[]

Méthodes publiques

Méthode Description
ColorFromPoint ( Graphics g, int x, int y ) : Color
ColorFromRGBString ( string text ) : Color
GetBValue ( uint color ) : byte
GetCOLORREF ( Color color ) : uint
GetGValue ( uint color ) : byte
GetRValue ( uint color ) : byte
HSLToRGB ( float h, float s, float l, float &r, float &g, float &b ) : void
IsKnownColor ( Color color, Color &knownColor, bool useTransparent ) : bool
IsSystemColor ( Color color, Color &knownColor ) : bool
RGB ( int r, int g, int b ) : uint
RGBToHSL ( int r, int g, int b, float &h, float &s, float &l ) : void

Private Methods

Méthode Description
CalculateColor ( Color front, Color back, int alpha ) : Color
ColorUtil ( ) : System
getRGBValue ( float n1, float n2, float hue ) : float

Method Details

ColorFromPoint() static public méthode

static public ColorFromPoint ( Graphics g, int x, int y ) : Color
g System.Drawing.Graphics
x int
y int
Résultat Color

ColorFromRGBString() static public méthode

static public ColorFromRGBString ( string text ) : Color
text string
Résultat Color

GetBValue() static public méthode

static public GetBValue ( uint color ) : byte
color uint
Résultat byte

GetCOLORREF() static public méthode

static public GetCOLORREF ( Color color ) : uint
color Color
Résultat uint

GetGValue() static public méthode

static public GetGValue ( uint color ) : byte
color uint
Résultat byte

GetRValue() static public méthode

static public GetRValue ( uint color ) : byte
color uint
Résultat byte

HSLToRGB() static public méthode

static public HSLToRGB ( float h, float s, float l, float &r, float &g, float &b ) : void
h float
s float
l float
r float
g float
b float
Résultat void

IsKnownColor() static public méthode

static public IsKnownColor ( Color color, Color &knownColor, bool useTransparent ) : bool
color Color
knownColor Color
useTransparent bool
Résultat bool

IsSystemColor() static public méthode

static public IsSystemColor ( Color color, Color &knownColor ) : bool
color Color
knownColor Color
Résultat bool

RGB() static public méthode

static public RGB ( int r, int g, int b ) : uint
r int
g int
b int
Résultat uint

RGBToHSL() static public méthode

static public RGBToHSL ( int r, int g, int b, float &h, float &s, float &l ) : void
r int
g int
b int
h float
s float
l float
Résultat void

Property Details

KnownColorNames static_oe public_oe property

static public string[] KnownColorNames
Résultat string[]

SystemColorNames static_oe public_oe property

static public string[] SystemColorNames
Résultat string[]