Table of Contents

Struct ColorFormatConfiguration

Namespace
Bonsai.Shaders.Configuration
Assembly
Bonsai.Shaders.dll

Represents a configuration object specifying the color format of a draw buffer.

[TypeConverter(typeof(ColorFormatConfiguration.ColorFormatConfigurationConverter))]
public struct ColorFormatConfiguration
Inherited Members

Constructors

ColorFormatConfiguration(int)

Initializes a new instance of the ColorFormatConfiguration structure using the specified total number of bits per pixel.

public ColorFormatConfiguration(int bpp)

Parameters

bpp int

The total number of bits per pixel used by the color format.

ColorFormatConfiguration(int, int, int, int)

Initializes a new instance of the ColorFormatConfiguration structure using the specified number of bits per pixel for each channel.

public ColorFormatConfiguration(int red, int green, int blue, int alpha)

Parameters

red int

The number of bits per pixel for the red channel.

green int

The number of bits per pixel for the green channel.

blue int

The number of bits per pixel for the blue channel.

alpha int

The number of bits per pixel for the alpha channel.

Properties

Alpha

Gets or sets a value specifying the number of bits per pixel for the alpha channel.

public int Alpha { readonly get; set; }

Property Value

int

BitsPerPixel

Gets or sets a value specifying the total number of bits per pixel.

public int BitsPerPixel { get; set; }

Property Value

int

Blue

Gets or sets a value specifying the number of bits per pixel for the blue channel.

public int Blue { readonly get; set; }

Property Value

int

Green

Gets or sets a value specifying the number of bits per pixel for the green channel.

public int Green { readonly get; set; }

Property Value

int

Red

Gets or sets a value specifying the number of bits per pixel for the red channel.

public int Red { readonly get; set; }

Property Value

int

Methods

ToString()

Returns a string that represents the current color format configuration.

public override string ToString()

Returns

string

A string that represents the current color format configuration.