|
Foxit PDF SDK
|
Public Member Functions | |
| def | ConvertColor (color) |
| Convert input color to the color in current color space. More... | |
| def | GetColorSpaceType () |
| Get color space type. More... | |
| def | GetComponentCount () |
| Get the count of components. More... | |
| def | GetComponentNames () |
| Get a string array which represents the name of colorant for Separation color space, or names specifying the individual color components for DeviceN color space. More... | |
| def | IsEmpty () |
| Check whether current object is empty or not. More... | |
| def | IsSpotColorSpace () |
| Check whether current color space object is a spot color space or not. More... | |
This class represents color space. User can use this class to covert colors.
| def fsdk.ColorSpace.ConvertColor | ( | color | ) |
Convert input color to the color in current color space.
Convert input C/M/Y/K component values to a color object in current color space.
Convert input R/G/B component values to a color in current color space.
| [in] | color | Input color, which is to be converted to current color space. |
| [in] | r_value | R component value. Valid range: from 0 to 255. |
| [in] | g_value | G component value. Valid range: from 0 to 255. |
| [in] | b_value | B component value. Valid range: from 0 to 255. |
| [in] | c_value | C component value. Valid range: from 0 to 255. |
| [in] | m_value | M component value. Valid range: from 0 to 255. |
| [in] | y_value | Y component value. Valid range: from 0 to 255. |
| [in] | k_value | K component value. Valid range: from 0 to 255. |
| def fsdk.ColorSpace.GetColorSpaceType | ( | ) |
Get color space type.
| def fsdk.ColorSpace.GetComponentCount | ( | ) |
Get the count of components.
For different color space type, the count of components are not the same.
| def fsdk.ColorSpace.GetComponentNames | ( | ) |
Get a string array which represents the name of colorant for Separation color space, or names specifying the individual color components for DeviceN color space.
This function is only available when current color space type is fsdk.E_ColorSpaceSeparation or fsdk.E_ColorSpaceDeviceN . For other color space type, this function will return an empty string array.
For Separation color space, the count of returned array will be only one and the string specifies the name of colorant.
For DeviceN color space, there can be several strings in returned array and they specify the individual color components.
| def fsdk.ColorSpace.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| def fsdk.ColorSpace.IsSpotColorSpace | ( | ) |
Check whether current color space object is a spot color space or not.