ColorFormat Struct
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.
Defines the ColorFormat component of a GraphicsMode.
public struct ColorFormat : IComparable<OpenTK.Graphics.ColorFormat>
type ColorFormat = struct
- Inheritance
-
ColorFormat
- Implements
Remarks
A ColorFormat contains Red, Green, Blue and Alpha components that descibe the allocated bits per pixel for the corresponding color.
Constructors
| 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. |
Fields
| Empty |
Properties
| Alpha |
Gets the bits per pixel for the Alpha channel. |
| BitsPerPixel |
Gets the sum of Red, Green, Blue and Alpha bits per pixel. |
| Blue |
Gets the bits per pixel for the Blue channel. |
| Green |
Gets the bits per pixel for the Green channel. |
| IsIndexed |
Gets a System.Boolean indicating whether this ColorFormat is indexed. |
| Red |
Gets the bits per pixel for the Red channel. |
Methods
| CompareTo(ColorFormat) | |
| Equals(Object) |
Indicates whether this instance and a specified object are equal. |
| GetHashCode() |
Returns the hash code for this instance. |
| ToString() |
Returns a T:System.String that describes this instance. |