ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDEColorSpace Class / ColorComponents Property




In This Topic
    ColorComponents Property
    In This Topic
    Gets the number of components in the color space.
    Syntax
    'Declaration
     
    Public ReadOnly Property ColorComponents As Integer
    'Usage
     
    Dim instance As ImGearPDEColorSpace
    Dim value As Integer
     
    value = instance.ColorComponents
    public int ColorComponents {get;}
    public: __property int get_ColorComponents();
    public:
    property int ColorComponents {
       int get();
    }

    Property Value

    Can be 1, 3, or 4.
    Remarks
    This property gets the number of components in the color space. For the following color spaces the number of components is:
    • DeviceGray, CalGray, Separation: 1.
    • DeviceRGB, CalRGB: 3.
    • DeviceCMYK, Lab: 4.
    • DeviceN, ICCBased: the number of components dependent on the specific color space object
    • Indexed: 1.

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

    See Also