PixelDataFormat

The pixel data format.

Methods

MethodDescription
getRgb32Bpp()Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.
getCmyk()Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the cyan, magenta, yellow and black.
getRgb24Bpp()Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.
getRgb16Bpp555()Gets the PixelDataFormat defined for 16 bits per pixel with 5 bits for each of the red, green and blue, alpha is not defined.
getRgbIndexed8Bpp()Gets the PixelDataFormat defined for indexed 8 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.
getRgbIndexed4Bpp()Gets the PixelDataFormat defined for indexed 4 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.
getRgbIndexed2Bpp()Gets the PixelDataFormat defined for indexed 2 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.
getRgbIndexed1Bpp()Gets the PixelDataFormat defined for indexed 1 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.
getYCbCr()Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the luma, blue-difference and red-difference chroma components.
getGrayscale()Gets the PixelDataFormat defined for 8 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval.
getYcck()Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the luma, blue-difference, red-difference and black chroma components.
getRgba32Bpp()Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.
getRgb24BppPng()Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.
getGrayscaleAlpha()Gets the PixelDataFormat defined for 16 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval and additional 8 bit alpha component.
getPixelFormat()Gets the pixel format.
getBitsPerPixel()Gets the bits per pixel.
getChannelsCount()Gets the channels count.
getChannelBits()Gets the bits count for each channel.
op_Inequality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)Returns result of non-equality for two PixelDataFormat classes.
op_Equality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)Returns result of equality for two PixelDataFormat classes.
equals(Object obj)Determines whether the specified System.Object is equal to this instance.
hashCode()Returns a hash code for this instance.
toString()Returns a System.String that represents this instance.

getRgb32Bpp()

public static PixelDataFormat getRgb32Bpp()

Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.

Returns: PixelDataFormat - The PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.

getCmyk()

public static PixelDataFormat getCmyk()

Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the cyan, magenta, yellow and black.

Returns: PixelDataFormat - The PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the cyan, magenta, yellow and black.

getRgb24Bpp()

public static PixelDataFormat getRgb24Bpp()

Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.

Returns: PixelDataFormat - The PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.

getRgb16Bpp555()

public static PixelDataFormat getRgb16Bpp555()

Gets the PixelDataFormat defined for 16 bits per pixel with 5 bits for each of the red, green and blue, alpha is not defined.

Returns: PixelDataFormat - The PixelDataFormat defined for 16 bits per pixel with 5 bits for each of the red, green and blue, alpha is not defined.

getRgbIndexed8Bpp()

public static PixelDataFormat getRgbIndexed8Bpp()

Gets the PixelDataFormat defined for indexed 8 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.

Returns: PixelDataFormat - The PixelDataFormat defined for indexed 8 bit per color.

getRgbIndexed4Bpp()

public static PixelDataFormat getRgbIndexed4Bpp()

Gets the PixelDataFormat defined for indexed 4 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.

Returns: PixelDataFormat - The PixelDataFormat defined for indexed 4 bit per color.

getRgbIndexed2Bpp()

public static PixelDataFormat getRgbIndexed2Bpp()

Gets the PixelDataFormat defined for indexed 2 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.

Returns: PixelDataFormat - The PixelDataFormat defined for indexed 2 bit per color.

getRgbIndexed1Bpp()

public static PixelDataFormat getRgbIndexed1Bpp()

Gets the PixelDataFormat defined for indexed 1 bit per color. The indexed pixel data storage is intended to allow data storage and retrieval everywhere the color palette is used. Use with caution, because may require conversion from one palette to another or from RGBA to indexed color model.

Returns: PixelDataFormat - The PixelDataFormat defined for indexed 1 bit per color.

getYCbCr()

public static PixelDataFormat getYCbCr()

Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the luma, blue-difference and red-difference chroma components.

Returns: PixelDataFormat - The PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the luma, blue-difference and red-difference chroma components.

getGrayscale()

public static PixelDataFormat getGrayscale()

Gets the PixelDataFormat defined for 8 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval.

Returns: PixelDataFormat - The PixelDataFormat defined for 8 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval.

getYcck()

public static PixelDataFormat getYcck()

Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the luma, blue-difference, red-difference and black chroma components.

Returns: PixelDataFormat - The PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the luma, blue-difference, red-difference and black chroma components.

getRgba32Bpp()

public static PixelDataFormat getRgba32Bpp()

Gets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.

Returns: PixelDataFormat - The PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.

getRgb24BppPng()

public static PixelDataFormat getRgb24BppPng()

Gets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.

Returns: PixelDataFormat - The PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.

getGrayscaleAlpha()

public static PixelDataFormat getGrayscaleAlpha()

Gets the PixelDataFormat defined for 16 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval and additional 8 bit alpha component.

Returns: PixelDataFormat - The PixelDataFormat defined for 16 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval and additional 8 bit alpha component.

getPixelFormat()

public long getPixelFormat()

Gets the pixel format.

Returns: long - The pixel format.

getBitsPerPixel()

public int getBitsPerPixel()

Gets the bits per pixel.

Returns: int - The bits per pixel.

getChannelsCount()

public int getChannelsCount()

Gets the channels count.

Returns: int - The channels count.

getChannelBits()

public int[] getChannelBits()

Gets the bits count for each channel.

Returns: int[] - The channel bits.

op_Inequality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)

public static boolean op_Inequality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)

Returns result of non-equality for two PixelDataFormat classes.

Parameters:

ParameterTypeDescription
pixelFormat1PixelDataFormatThe first PixelDataFormat to compare.
pixelFormat2PixelDataFormatThe second PixelDataFormat to compare.

Returns: boolean - True if both pixelFormat1 and pixelFormat2 contain non-equal data or one of the parameters is null.

op_Equality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)

public static boolean op_Equality(PixelDataFormat pixelFormat1, PixelDataFormat pixelFormat2)

Returns result of equality for two PixelDataFormat classes.

Parameters:

ParameterTypeDescription
pixelFormat1PixelDataFormatThe first PixelDataFormat to compare.
pixelFormat2PixelDataFormatThe second PixelDataFormat to compare.

Returns: boolean - True if both pixelFormat1 and pixelFormat2 contain equal data or both parameters are null.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified System.Object is equal to this instance.

Parameters:

ParameterTypeDescription
objObjectThe System.Object to compare with this instance.

Returns: boolean - true if the specified System.Object is equal to this instance; otherwise, false .

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

toString()

public String toString()

Returns a System.String that represents this instance.

Returns: String - A System.String that represents this instance.