Click or drag to resize

PixelFormatUtilities Methods

The PixelFormatUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBitsPerChannel
Returns the number of bits in each channel of this image.
Public methodStatic memberBitsPerPixel
Returns the number of bits used per pixel in total.
Public methodStatic memberChannelsPerPixel
Returns the number of channels in this pixel format
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHasAlpha
Returns true if the pixel format contains an alpha channel
Public methodStatic memberImageSize
Given a pixel format, ImageSize will return the number of bytes necessary to represent that image.
Public methodStatic memberIsColor
Indicates whether or not a pixel format represents a color image
Public methodStatic memberIsColorMapped
Indicated whether or not the pixel format represents a color mapped format
Public methodStatic memberIsContinuous
Indicates whether or not the pixel format represents a continuous pixel format
Public methodStatic memberIsGray
Indicates whether or not the pixel format represents a gray image.
Public methodStatic memberIsMultiByte
Indicates whether or not any channel in this image requires multiple bytes.
Public methodStatic memberIsRGBColor
Returns
true
if the pixel format represents an RGB color,
false
otherwise.
Public methodStatic memberIsValid(PixelFormat)
Public methodStatic memberIsValid(Int32)
Public methodStatic memberRowStride(Int32, Int32)
Calculates the width in bytes of a row in an image.
Public methodStatic memberRowStride(PixelFormat, Int32)
Calculates the width in bytes of a row in an image.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also