PixelDataFormat Class

Summary: The pixel data format. This is an immutable object.

Module: aspose.psd

Full Name: aspose.psd.PixelDataFormat

Aspose.PSD Version: 24.9.0

Properties

NameTypeAccessDescription
bits_per_pixelintrGets the bits per pixel.
captionstringrGets the pixel data format caption.
channel_bitsintrGets the bits count for each channel.
channels_countintrGets the channels count.
cmyk [static]PixelDataFormatrGets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the cyan, magenta, yellow and black.
cmyka [static]PixelDataFormatrGets the acmyk.
grayscale [static]PixelDataFormatrGets the PixelDataFormat defined for 8 bits per pixel with 8 bits representing grayscale intensity in the 0-255 interval.
grayscale_alpha [static]PixelDataFormatrGets 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.
pixel_formatPixelFormatrGets the pixel format.
rgb_16_bpp_555 [static]PixelDataFormatrGets the PixelDataFormat defined for 16 bits per pixel with 5 bits for each of the red, green and blue, alpha is not defined.
rgb_16_bpp_565 [static]PixelDataFormatrGets the PixelDataFormat defined for 16 bits per pixel with 5 bits for red, 6 bits for green and 5 bits for blue, alpha is not defined.
rgb_24_bpp [static]PixelDataFormatrGets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.
rgb_24_bpp_png [static]PixelDataFormatrGets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the alpha, red, green and blue, alpha is not defined.
rgb_32_bpp [static]PixelDataFormatrGets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.
rgb_indexed_1_bpp [static]PixelDataFormatrGets 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.
rgb_indexed_2_bpp [static]PixelDataFormatrGets 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.
rgb_indexed_4_bpp [static]PixelDataFormatrGets 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.
rgb_indexed_8_bpp [static]PixelDataFormatrGets 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.
rgba_32_bpp [static]PixelDataFormatrGets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the alpha, red, green and blue.
rgba_64_bpp [static]PixelDataFormatrGets the PixelDataFormat defined for 64 bits per pixel with 16 bits for each of the alpha, red, green and blue.
y_cb_cr [static]PixelDataFormatrGets the PixelDataFormat defined for 24 bits per pixel with 8 bits for each of the luma, blue-difference and red-difference chroma components.
ycck [static]PixelDataFormatrGets the PixelDataFormat defined for 32 bits per pixel with 8 bits for each of the luma, blue-difference, red-difference and black chroma components.

Methods

NameDescription
get_bgr(bits_per_sample)Gets BGRA color with a specified number of bits per sample.
get_bgra(bits_per_sample)Gets BGRA color with a specified number of bits per sample.
get_cie_lab(bits_per_l, bits_per_a, bits_per_b)Gets CIE Lab color with a specified number of bits per sample.
get_cmyk(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel)Gets CMYK color with a specified number of bits per sample.
get_cmyk(bits_per_sample)Gets CMYK color with a specified number of bits per sample.
get_cmyka(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel, bits_per_alpha_channel)Gets CMYKA color with a specified number of bits per sample.
get_grayscale(bits_per_sample)Gets Grayscale color with a specified number of bits per sample.
get_grayscale_alpha(bits_per_sample)Gets GrayscaleAlpha color with a specified number of bits per sample.
get_grayscale_alpha(bits_per_sample, alpha_channel_bits)Gets GrayscaleAlpha color with a specified number of bits per sample.
get_rgb(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel)Gets RGB color with a specified number of bits per sample.
get_rgb(bits_per_sample)Gets RGB color with a specified number of bits per sample.
get_rgb_indexed(bits_per_sample)Gets BGRA indexed color with a specified number of bits per sample.
get_rgba(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel, bits_per_alpha_channel)Gets RGBA color with a specified number of bits per sample.
get_rgba(bits_per_sample)Gets RGBA color with a specified number of bits per sample.
get_y_cb_cr(bits_per_sample)Gets YCbCr color with a specified number of bits per sample.
get_y_cb_cr(bits_per_y, bits_per_cb, bits_per_cr)Gets YCbCr color with a specified number of bits per sample.
get_ycck(bits_per_sample)Gets YCCK color with a specified number of bits per sample.

Method: get_bgr(bits_per_sample) [static]

 get_bgr(bits_per_sample) 

Gets BGRA color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe BGRA color.

Method: get_bgra(bits_per_sample) [static]

 get_bgra(bits_per_sample) 

Gets BGRA color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe BGRA color.

Method: get_cie_lab(bits_per_l, bits_per_a, bits_per_b) [static]

 get_cie_lab(bits_per_l, bits_per_a, bits_per_b) 

Gets CIE Lab color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_lintThe number of bits per L channel.
bits_per_aintThe number of bits per A channel.
bits_per_bintThe number of bits per B channel.

Returns

TypeDescription
PixelDataFormatThe CIE Lab color.

Method: get_cmyk(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel) [static]

 get_cmyk(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel) 

Gets CMYK color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_cyan_channelintThe number of bits per Cyan channel.
bits_per_magenta_channelintThe number of bits per Magenta channel.
bits_per_yellow_channelintThe number of bits per Yellow channel.
bits_per_key_channelintThe number of bits per Key channel.

Returns

TypeDescription
PixelDataFormatThe CMYK color.

Method: get_cmyk(bits_per_sample) [static]

 get_cmyk(bits_per_sample) 

Gets CMYK color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe CMYK color.

Method: get_cmyka(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel, bits_per_alpha_channel) [static]

 get_cmyka(bits_per_cyan_channel, bits_per_magenta_channel, bits_per_yellow_channel, bits_per_key_channel, bits_per_alpha_channel) 

Gets CMYKA color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_cyan_channelintThe number of bits per Cyan channel.
bits_per_magenta_channelintThe number of bits per Magenta channel.
bits_per_yellow_channelintThe number of bits per Yellow channel.
bits_per_key_channelintThe number of bits per Key channel.
bits_per_alpha_channelintThe number of bits per Alpha channel.

Returns

TypeDescription
PixelDataFormatThe CMYK color.

Method: get_grayscale(bits_per_sample) [static]

 get_grayscale(bits_per_sample) 

Gets Grayscale color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe Grayscale color.

Method: get_grayscale_alpha(bits_per_sample) [static]

 get_grayscale_alpha(bits_per_sample) 

Gets GrayscaleAlpha color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe GrayscaleAlpha color.

Method: get_grayscale_alpha(bits_per_sample, alpha_channel_bits) [static]

 get_grayscale_alpha(bits_per_sample, alpha_channel_bits) 

Gets GrayscaleAlpha color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.
alpha_channel_bitsintThe number of bits per sample in the alpha channel.

Returns

TypeDescription
PixelDataFormatThe GrayscaleAlpha color.

Method: get_rgb(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel) [static]

 get_rgb(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel) 

Gets RGB color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_red_channelintThe number of bits per Red channel.
bits_per_green_channelintThe number of bits per Green channel.
bits_per_blue_channelintThe number of bits per Blue channel.

Returns

TypeDescription
PixelDataFormatThe RGB color.

Method: get_rgb(bits_per_sample) [static]

 get_rgb(bits_per_sample) 

Gets RGB color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe RGB color.

Method: get_rgb_indexed(bits_per_sample) [static]

 get_rgb_indexed(bits_per_sample) 

Gets BGRA indexed color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe BGRA color.

Method: get_rgba(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel, bits_per_alpha_channel) [static]

 get_rgba(bits_per_red_channel, bits_per_green_channel, bits_per_blue_channel, bits_per_alpha_channel) 

Gets RGBA color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_red_channelintThe number of bits per Red channel.
bits_per_green_channelintThe number of bits per Green channel.
bits_per_blue_channelintThe number of bits per Blue channel.
bits_per_alpha_channelintThe number of bits per Alpha channel.

Returns

TypeDescription
PixelDataFormatThe RGBA color.

Method: get_rgba(bits_per_sample) [static]

 get_rgba(bits_per_sample) 

Gets RGBA color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe RGBA color.

Method: get_y_cb_cr(bits_per_sample) [static]

 get_y_cb_cr(bits_per_sample) 

Gets YCbCr color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe YCbCr color.

Method: get_y_cb_cr(bits_per_y, bits_per_cb, bits_per_cr) [static]

 get_y_cb_cr(bits_per_y, bits_per_cb, bits_per_cr) 

Gets YCbCr color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_yintThe number of bits per Y channel.
bits_per_cbintThe number of bits per Cb channel.
bits_per_crintThe number of bits per Cr channel.

Returns

TypeDescription
PixelDataFormatThe YCbCr color.

Method: get_ycck(bits_per_sample) [static]

 get_ycck(bits_per_sample) 

Gets YCCK color with a specified number of bits per sample.

Parameters:

ParameterTypeDescription
bits_per_sampleintThe number of bits per sample.

Returns

TypeDescription
PixelDataFormatThe YCCK color.