QPx_GetImageFileColorSpace
QPx_GetImageFileColorSpace(imagePath; imagePath):error | |||
---|---|---|---|
![]() |
imagePath | Text | Full path to image file |
![]() |
colorSpace | Longint | Color space identifier |
![]() |
error | Longint | Error result |
Get the color space of an image
The imagePath parameter contains the full pathname to the image file. If imagePath is empty, QPix presents a file selection dialog where the user can preview and select an image file. If the user selects a file, its full pathname is returned in imagePath, otherwise error qpx_userCancelErr 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_GetImageFileInfo | Get the properties of an image file |
QPx_GetImageFileColorProfile | Get the color profile of an image |