ColorFormat Struct

Definition

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)

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.

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.

Operators

Equality(ColorFormat, ColorFormat)
GreaterThan(ColorFormat, ColorFormat)
GreaterThanOrEqual(ColorFormat, ColorFormat)
Implicit(Int32 to ColorFormat)
Inequality(ColorFormat, ColorFormat)
LessThan(ColorFormat, ColorFormat)
LessThanOrEqual(ColorFormat, ColorFormat)

Applies to