C# Class Vanara.PInvoke.COLORREF

Mostrar archivo Open project: dahall/Vanara Class Usage Examples

Public Methods

Method 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

Method Description
Equals ( ) : System

Method Details

COLORREF() public method

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

COLORREF() public method

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.
return System

COLORREF() public method

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

Darken() public method

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.
return COLORREF

Equals() public method

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

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Lighten() public method

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.
return COLORREF

ToArgb() public method

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