PixelFormat Members

The PixelFormat type exposes the following members.

Constructors

Name Description
Public method PixelFormat Overloaded.

Initializes a new instance of the PixelFormat class.

Methods

Name Description
Public method Static member AddAlpha

Adds an alpha channel to the specified pixel format.

Public method Static member ConvertToExtended

Convertes the specified pixel format to an extended one.

Public method Static member ConvertToSimple

Converts the specified pixel format in non-extended one.

Public method Static member DiscardAlpha

Removes an alpha channel from the specified pixel format.

Public method Equals

Determines whether the specified object is equal to the current PixelFormat.

(Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode

Returns a hash code of this PixelFormat.

(Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString

Returns a string that represents the current PixelFormat.

(Overrides Object.ToString().)

Operators

Name Description
Public operator Static member Equality

Tests whether two specified PixelFormat instances are equivalent.

Public operator Static member Implicit Overloaded.
Public operator Static member Inequality

Tests whether two specified PixelFormat instances are different.

Properties

Name Description
Public property ChannelCount

Gets a number of channels available in this pixel format.

Public property ColorSpace

Gets a color space of the pixel format.

Public property Static member Format16bppAgrayscale

Gets a 16bppAGrayScale pixel format.

Public property Static member Format16bppAspot

Gets a 16bppAspot pixel format.

Public property Static member Format16bppGrayscale

Gets a 16bppGrayScale pixel format.

Public property Static member Format1bppIndexed

Gets a 1bppIndexed pixel format.

Public property Static member Format24bppLab

Gets a 24bppLab pixel format.

Public property Static member Format24bppRgb

Gets a 24bppRGB pixel format.

Public property Static member Format32bppAgrayscale

Gets a 32bppAGrayScale pixel format.

Public property Static member Format32bppAlab

Gets a 32bppALab pixel format.

Public property Static member Format32bppArgb

Gets a 32bppARGB pixel format.

Public property Static member Format32bppCmyk

Gets a 32bppCMYK pixel format.

Public property Static member Format32bppRgb

Gets a 32bppRGB pixel format.

Public property Static member Format40bppAcmyk

Gets a 40bppACMYK pixel format.

Public property Static member Format48bppLab

Gets a 48bppLab pixel format.

Public property Static member Format48bppRgb

Gets a 48bppRGB pixel format.

Public property Static member Format4bppIndexed

Gets a 4bppIndexed pixel format.

Public property Static member Format64bppAlab

Gets a 64bppALab pixel format.

Public property Static member Format64bppArgb

Gets a 64bppARGB pixel format.

Public property Static member Format64bppCmyk

Gets a 64bppCMYK pixel format.

Public property Static member Format80bppAcmyk

Gets a 80bppACMYK pixel format.

Public property Static member Format8bppGrayscale

Gets a 8bppGrayScale pixel format.

Public property Static member Format8bppIndexed

Gets a 8bppIndexed pixel format.

Public property Static member Format8bppSpot

Gets a 8bppSpot pixel format.

Public property Static member FormatUnknown

Gets an undefined pixel format.

Public property HasAlpha

Gets a value indicating whether the current pixel format supports alpha channel (information about opacity of pixels).

Public property IsCmyk

Gets a value indicating whether the current pixel format is CMYK.

Public property IsExtended

Gets a value indicating whether the current pixel format is extended (i.e. 16 bits per channel).

Public property IsGrayscale

Gets a value indicating whether the current pixel format is grayscale.

Public property IsIndexed

Gets a value indicating whether the current pixel format is indexed (i.e. 16 bits per channel).

Public property IsLab

Gets a value indicating whether the current pixel format is Lab.

Public property IsRgb

Gets a value indicating whether the current pixel format is RGB.

Public property IsSpot

Gets a value indicating whether the current pixel format is spot.

Public property MaxChannelValue

Gets a maximum channel value available in this pixel format.

Public property Size

Gets a size of this pixel format.

See Also

Reference