C# 클래스 OpenBveApi.Colors.Color32

Represents a 32-bit color with red, green, blue and alpha channels at 8 bits each.
파일 보기 프로젝트 열기: leezer3/OpenBVE 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
A byte
B byte
Black Color32
Blue Color32
Cyan Color32
G byte
Green Color32
Magenta Color32
R byte
Red Color32
Transparent Color32
White Color32
Yellow Color32

공개 메소드들

메소드 설명
Color32 ( Color24 color ) : System

Creates a new color.

The alpha component is set to full opacity.

Color32 ( Color24 color, byte a ) : System

Creates a new color.

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

Creates a new color.

The alpha component is set to full opacity.

Color32 ( byte r, byte g, byte b, byte a ) : System

Creates a new color.

operator ( ) : bool

Checks whether two colors are equal.

메소드 상세

Color32() 공개 메소드

Creates a new color.
The alpha component is set to full opacity.
public Color32 ( Color24 color ) : System
color Color24 The solid color.
리턴 System

Color32() 공개 메소드

Creates a new color.
public Color32 ( Color24 color, byte a ) : System
color Color24 The solid color.
a byte The alpha component.
리턴 System

Color32() 공개 메소드

Creates a new color.
The alpha component is set to full opacity.
public Color32 ( byte r, byte g, byte b ) : System
r byte The red component.
g byte The green component.
b byte The blue component.
리턴 System

Color32() 공개 메소드

Creates a new color.
public Color32 ( byte r, byte g, byte b, byte a ) : System
r byte The red component.
g byte The green component.
b byte The blue component.
a byte The alpha component.
리턴 System

operator() 공개 정적인 메소드

Checks whether two colors are equal.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

A 공개적으로 프로퍼티

The alpha component.
public byte A
리턴 byte

B 공개적으로 프로퍼티

The blue component.
public byte B
리턴 byte

Black 공개적으로 정적으로 프로퍼티

Represents a black color.
public static Color32,OpenBveApi.Colors Black
리턴 Color32

Blue 공개적으로 정적으로 프로퍼티

Represents a blue color.
public static Color32,OpenBveApi.Colors Blue
리턴 Color32

Cyan 공개적으로 정적으로 프로퍼티

Represents a cyan color.
public static Color32,OpenBveApi.Colors Cyan
리턴 Color32

G 공개적으로 프로퍼티

The green component.
public byte G
리턴 byte

Green 공개적으로 정적으로 프로퍼티

Represents a green color.
public static Color32,OpenBveApi.Colors Green
리턴 Color32

Magenta 공개적으로 정적으로 프로퍼티

Represents a magenta color.
public static Color32,OpenBveApi.Colors Magenta
리턴 Color32

R 공개적으로 프로퍼티

The red component.
public byte R
리턴 byte

Red 공개적으로 정적으로 프로퍼티

Represents a red color.
public static Color32,OpenBveApi.Colors Red
리턴 Color32

Transparent 공개적으로 정적으로 프로퍼티

Represents a transparent black color.
public static Color32,OpenBveApi.Colors Transparent
리턴 Color32

White 공개적으로 정적으로 프로퍼티

Represents a white color.
public static Color32,OpenBveApi.Colors White
리턴 Color32

Yellow 공개적으로 정적으로 프로퍼티

Represents a yellow color.
public static Color32,OpenBveApi.Colors Yellow
리턴 Color32