C# Класс SidebarLibrary.General.ColorUtil

Summary description for ColorConvert.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
KnownColorNames string[]
SystemColorNames string[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CalculateColor ( Color front, Color back, int alpha ) : Color
ColorUtil ( ) : System
getRGBValue ( float n1, float n2, float hue ) : float

Описание методов

ColorFromPoint() статический публичный Метод

static public ColorFromPoint ( Graphics g, int x, int y ) : Color
g System.Drawing.Graphics
x int
y int
Результат Color

ColorFromRGBString() статический публичный Метод

static public ColorFromRGBString ( string text ) : Color
text string
Результат Color

GetBValue() статический публичный Метод

static public GetBValue ( uint color ) : byte
color uint
Результат byte

GetCOLORREF() статический публичный Метод

static public GetCOLORREF ( Color color ) : uint
color Color
Результат uint

GetGValue() статический публичный Метод

static public GetGValue ( uint color ) : byte
color uint
Результат byte

GetRValue() статический публичный Метод

static public GetRValue ( uint color ) : byte
color uint
Результат byte

HSLToRGB() статический публичный Метод

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
Результат void

IsKnownColor() статический публичный Метод

static public IsKnownColor ( Color color, Color &knownColor, bool useTransparent ) : bool
color Color
knownColor Color
useTransparent bool
Результат bool

IsSystemColor() статический публичный Метод

static public IsSystemColor ( Color color, Color &knownColor ) : bool
color Color
knownColor Color
Результат bool

RGB() статический публичный Метод

static public RGB ( int r, int g, int b ) : uint
r int
g int
b int
Результат uint

RGBToHSL() статический публичный Метод

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
Результат void

Описание свойств

KnownColorNames статическое публичное свойство

static public string[] KnownColorNames
Результат string[]

SystemColorNames статическое публичное свойство

static public string[] SystemColorNames
Результат string[]