C# 클래스 Vanara.PInvoke.COLORREF

파일 보기 프로젝트 열기: dahall/Vanara 1 사용 예제들

공개 메소드들

메소드 설명
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