QPx_GetImporterColorSpace

QPx_GetImporterColorSpace(importerRef; importerRef):error
importerRef Longint Reference to a graphics importer instance
colorSpace Longint Color space identifier
error Longint Error result

Get the color space of the image associated with an importer

The graphics importer instance is specified by importerRef. If importerRef does not refer to an existing graphics importer instance, the qpx_paramErr error code is returned.

Parameter colorSpace receives the color space of the image. The color space is identified with the following constants:

qpx_RGBColorSpace 0x0001 RGB color space
qpx_CMYKColorSpace 0x0002 CMYK color space
qpx_GrayColorSpace 0x000A Grayscale color space
qpx_RGBAlphaColorSpace 0x0081 RGB with alpha color space
qpx_GrayAlphaColorSpace 0x008A Grayscale with alpha color space

Related commands

QPx_GetImporterColorProfile Get the color profile of the image associated with an importer