DL Logo

JPXPalette Typedefs

JPXPalette

Header: PEExpT.h:427

Description

A reference to a JPXPalette.

Syntax

typedef struct _t_JPXPalette *JPXPalette;

Returned From

Used By

JPXPalette Functions

JPXPaletteGetBitDepths

Header: PERProcs.h:2893

Description

Returns the bit depths of the color values represented in the palette. The length of the array must be at least the number of components.

Related Methods

Syntax

void JPXPaletteGetBitDepths(IN JPXPalette jpxPalette, OUT ASInt32 *bitDepths);

Parameters

jpxPalette
IN/OUT A JPX-encoded image object.
bitDepths
IN/OUT (Filled by the method) An array of bit depths for each component.

Exceptions

JPXPaletteGetNumComponents

Header: PERProcs.h:2905

Description

Returns the number of color components represented by the palette.

Related Methods

Syntax

ASInt32 JPXPaletteGetNumComponents(IN JPXPalette jpxPalette);

Parameters

jpxPalette
IN/OUT A JPX encoded image object.

Returns

The number of components of the JPX image represented by the palette.

Exceptions

JPXPaletteGetNumEntries

Header: PERProcs.h:2880

Description

Returns the number of palette entries.

Related Methods

Syntax

ASInt32 JPXPaletteGetNumEntries(IN JPXPalette jpxPalette);

Parameters

jpxPalette
IN/OUT A JPX encoded image object.

Returns

The number of palette entries.

Exceptions

JPXPaletteGetTable

Header: PERProcs.h:2922

Description

Returns the palette data as a read only non-seekable ASStm. The returned ASStm should be read with ASStmRead(). Each component entry in the palette is represented by the number of bytes needed to contain the bit depth for that component.

Syntax

ASStm JPXPaletteGetTable(IN JPXPalette jpxPalette, OUT ASInt32 *paletteLength);

Parameters

jpxPalette
IN/OUT A JPX encoded image object.
paletteLength
IN/OUT (Filled by the method) The length of the palette data.

Returns

A stream for the palette data.

Exceptions