Foxit PDF SDK
|
Public Member Functions | |
def | Color () |
Construct an empty color. More... | |
def | ConvertToCMYK (intent) |
Convert to a CMYK color. More... | |
def | ConvertToRGB (intent) |
Convert to a RGB color. More... | |
def | GetColorSpace () |
Get the color space that current color belongs to. More... | |
def | GetValue () |
Get component value array. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | SetValue (component_array) |
Set component value array. More... | |
This class represents a color.
def FoxitPDFSDKPython2.Color.Color | ( | ) |
Construct an empty color.
Constructor, with another color object.
Constructor, with a color space object.
[in] | color_space | A valid color space object. |
[in] | other | Another Color object. |
def FoxitPDFSDKPython2.Color.ConvertToCMYK | ( | intent | ) |
Convert to a CMYK color.
[in] | intent | (Reserved) Rendering intent used for color conversion. |
def FoxitPDFSDKPython2.Color.ConvertToRGB | ( | intent | ) |
Convert to a RGB color.
[in] | intent | (Reserved) Rendering intent used for color conversion. |
def FoxitPDFSDKPython2.Color.GetColorSpace | ( | ) |
Get the color space that current color belongs to.
def FoxitPDFSDKPython2.Color.GetValue | ( | ) |
Get component value array.
The count of components depends on the color space that current color belongs to. User can get the color space object by function FoxitPDFSDKPython2.Color.GetColorSpace , and then get the count of componets by function FoxitPDFSDKPython2.ColorSpace.GetComponentCount .
def FoxitPDFSDKPython2.Color.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython2.Color.SetValue | ( | component_array | ) |
Set component value array.
The count of components depends on the color space that current color belongs to. User can get the color space object by function FoxitPDFSDKPython2.Color.GetColorSpace , and then get the count of componets by function FoxitPDFSDKPython2.ColorSpace.GetComponentCount .
[in] | component_array | A component value array. The count of components in this array should match the count of components of the color space that current color belongs to. Valid range of each component value: from 0.0 to 1.0. |