C# Класс Vanara.PInvoke.COLORREF

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
COLORREF ( Color color ) : System

Initializes a new instance of the COLORREF struct.

COLORREF ( byte r, byte g, byte b ) : System

Initializes a new instance of the COLORREF struct.

COLORREF ( uint value ) : System

Initializes a new instance of the COLORREF struct.

Darken ( float percent ) : COLORREF

A method to darken a color by a percentage of the difference between the color and Black.

Equals ( c ) : bool

Determines whether the specified object is equal to the current object.

Equals ( object obj ) : bool
GetHashCode ( ) : int
Lighten ( float percent ) : COLORREF

A method to lighten a color by a percentage of the difference between the color and Black.

ToArgb ( ) : int

Gets the 32-bit ARGB value of this COLORREF structure.

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

Метод Описание
Equals ( ) : System

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

COLORREF() публичный Метод

Initializes a new instance of the COLORREF struct.
public COLORREF ( Color color ) : System
color Color The color.
Результат System

COLORREF() публичный Метод

Initializes a new instance of the COLORREF struct.
public COLORREF ( byte r, byte g, byte b ) : System
r byte The intensity of the red color.
g byte The intensity of the green color.
b byte The intensity of the blue color.
Результат System

COLORREF() публичный Метод

Initializes a new instance of the COLORREF struct.
public COLORREF ( uint value ) : System
value uint The packed DWORD value.
Результат System

Darken() публичный Метод

A method to darken a color by a percentage of the difference between the color and Black.
public Darken ( float percent ) : COLORREF
percent float The percentage by which to darken the original color.
Результат COLORREF

Equals() публичный Метод

Determines whether the specified object is equal to the current object.
public Equals ( c ) : bool
c The object to compare with the current object.
Результат bool

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Lighten() публичный Метод

A method to lighten a color by a percentage of the difference between the color and Black.
public Lighten ( float percent ) : COLORREF
percent float The percentage by which to lighten the original color.
Результат COLORREF

ToArgb() публичный Метод

Gets the 32-bit ARGB value of this COLORREF structure.
public ToArgb ( ) : int
Результат int