ColorFormat 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| ColorFormat(Int32) |
使用每個圖元的指定匯總位來建構新的 ColorFormat。 |
| ColorFormat(Int32, Int32, Int32, Int32) |
使用紅色、綠色、藍色和 Alpha 色板的指定位數,建構新的 ColorFormat。 |
ColorFormat(Int32)
使用每個圖元的指定匯總位來建構新的 ColorFormat。
public ColorFormat (int bpp);
new OpenTK.Graphics.ColorFormat : int -> OpenTK.Graphics.ColorFormat
參數
- bpp
- Int32
紅色、綠色、藍色和 Alpha 色板的每圖元總和位數。
適用於
ColorFormat(Int32, Int32, Int32, Int32)
使用紅色、綠色、藍色和 Alpha 色板的指定位數,建構新的 ColorFormat。
public ColorFormat (int red, int green, int blue, int alpha);
new OpenTK.Graphics.ColorFormat : int * int * int * int -> OpenTK.Graphics.ColorFormat
參數
- red
- Int32
紅色色頻的每個圖元位數。
- green
- Int32
綠色色板的每個圖元位數。
- blue
- Int32
藍色色板的每一像素位元數。
- alpha
- Int32
Alpha 色板的每個圖元位數。