C# Class Vanara.PInvoke.COLORREF

Afficher le fichier Open project: dahall/Vanara Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Equals ( ) : System

Method Details

COLORREF() public méthode

Initializes a new instance of the COLORREF struct.
public COLORREF ( Color color ) : System
color Color The color.
Résultat System

COLORREF() public méthode

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.
Résultat System

COLORREF() public méthode

Initializes a new instance of the COLORREF struct.
public COLORREF ( uint value ) : System
value uint The packed DWORD value.
Résultat System

Darken() public méthode

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.
Résultat COLORREF

Equals() public méthode

Determines whether the specified object is equal to the current object.
public Equals ( c ) : bool
c The object to compare with the current object.
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Lighten() public méthode

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.
Résultat COLORREF

ToArgb() public méthode

Gets the 32-bit ARGB value of this COLORREF structure.
public ToArgb ( ) : int
Résultat int