語言

Color 建構函式

定義

多載

名稱 Description
Color(Int32)

初始化一個新的 Color 結構體實例。

Color(Byte, Byte, Byte)

初始化一個新的 Color 結構體實例。

Color(Int32, Int32, Int32)

初始化一個新的 Color 結構體實例。

Color(Byte, Byte, Byte, Byte)

初始化一個新的 Color 結構體實例。

Color(Int32, Int32, Int32, Int32)

初始化一個新的 Color 結構體實例。

Color(Int32)

初始化一個新的 Color 結構體實例。

public Color(int argb);
new Android.Graphics.Color : int -> Android.Graphics.Color

參數

argb
Int32

一種顏色的整數表示(ARGB)。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Color(Byte, Byte, Byte)

初始化一個新的 Color 結構體實例。

public Color(byte r, byte g, byte b);
new Android.Graphics.Color : byte * byte * byte -> Android.Graphics.Color

參數

r
Byte

紅色元件。

g
Byte

綠色元件。

b
Byte

藍色元件。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Color(Int32, Int32, Int32)

初始化一個新的 Color 結構體實例。

public Color(int r, int g, int b);
new Android.Graphics.Color : int * int * int -> Android.Graphics.Color

參數

r
Int32

紅色元件。 (0-255)

g
Int32

綠色元件。 (0-255)

b
Int32

藍色元件。 (0-255)

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Color(Byte, Byte, Byte, Byte)

初始化一個新的 Color 結構體實例。

public Color(byte r, byte g, byte b, byte a);
new Android.Graphics.Color : byte * byte * byte * byte -> Android.Graphics.Color

參數

r
Byte

紅色元件。

g
Byte

綠色元件。

b
Byte

藍色元件。

a
Byte

Alpha元件。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Color(Int32, Int32, Int32, Int32)

初始化一個新的 Color 結構體實例。

public Color(int r, int g, int b, int a);
new Android.Graphics.Color : int * int * int * int -> Android.Graphics.Color

參數

r
Int32

紅色元件。 (0-255)

g
Int32

綠色元件。 (0-255)

b
Int32

藍色元件。 (0-255)

a
Int32

Alpha元件。 (0-255)

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於