ImageGear Professional DLL v17.1 for Windows Accusoft
IG_PDE_colorspace_get_color_components
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_COLORSPACE > IG_PDE_colorspace_get_color_components

Glossary Item Box

Calculates the number of components in a color space.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_colorspace_get_color_components (
        HIG_PDE_COLORSPACE hColorSpace,
        LPLONG lnpColorComponents);

Arguments:

hColorSpace A color space object.
lpnColorComponents

Number of components in hColorSpace. 

  • DeviceGray, CalGray, Separation: Returns 1.
  • DeviceRGB, CalRGB: Returns 3.
  • DeviceCMYK, Lab: Returns 4.
  • DeviceN, ICCBased: Returns the number of components dependent on the specific color space object.
  • Indexed: Returns 1.

Use IG_PDE_colorspace_get_base_color_components to get the number of components in the base color space.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

©2012. Accusoft Corporation. All Rights Reserved.