ColorFormat Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ColorFormat(Int32) |
Constructs a new ColorFormat with the specified aggregate bits per pixel. |
ColorFormat(Int32, Int32, Int32, Int32) |
Constructs a new ColorFormat with the specified bits per pixel for the Red, Green, Blue and Alpha color channels. |
ColorFormat(Int32)
Constructs a new ColorFormat with the specified aggregate bits per pixel.
public ColorFormat (int bpp);
new OpenTK.Graphics.ColorFormat : int -> OpenTK.Graphics.ColorFormat
Parameters
- bpp
- Int32
The bits per pixel sum for the Red, Green, Blue and Alpha color channels.
Applies to
ColorFormat(Int32, Int32, Int32, Int32)
Constructs a new ColorFormat with the specified bits per pixel for the Red, Green, Blue and Alpha color channels.
public ColorFormat (int red, int green, int blue, int alpha);
new OpenTK.Graphics.ColorFormat : int * int * int * int -> OpenTK.Graphics.ColorFormat
Parameters
- red
- Int32
Bits per pixel for the Red color channel.
- green
- Int32
Bits per pixel for the Green color channel.
- blue
- Int32
Bits per pixel for the Blue color channel.
- alpha
- Int32
Bits per pixel for the Alpha color channel.