Class RgbColor

RgbColor

由紅色、綠色和藍色色版定義的顏色。

方法

方法傳回類型簡短說明
asHexString()String以 CSS 樣式的 7 個字元十六進位字串 (#rrggbb) 或 9 個字元十六進位字串 (#aarrggbb) 傳回顏色。
getBlue()Integer這個顏色的藍色管道,範圍為 0 到 255。
getColorType()ColorType取得這個顏色的類型。
getGreen()Integer這個顏色的綠色通道,範圍為 0 到 255。
getRed()Integer這個顏色的紅色通道,範圍為 0 到 255 的數字。

內容詳盡的說明文件

asHexString()

以 CSS 樣式的 7 個字元十六進位字串 (#rrggbb) 或 9 個字元十六進位字串 (#aarrggbb) 傳回顏色。

回攻員

String:顏色的十六進位表示法。


getBlue()

這個顏色的藍色管道,範圍為 0 到 255。

回攻員

Integer:藍色管道的值。


getColorType()

取得這個顏色的類型。

回攻員

ColorType:顏色類型。


getGreen()

這個顏色的綠色通道,範圍為 0 到 255。

回攻員

Integer:綠色管道的值。


getRed()

這個顏色的紅色通道,範圍為 0 到 255 的數字。

回攻員

Integer - 紅色管道的值。