|
Foxit PDF SDK
|
Instance Methods | |
| (FSColor *) | - convertToCMYK: |
| Convert to a CMYK color. More... | |
| (FSColor *) | - convertToRGB: |
| Convert to a RGB color. More... | |
| (FSColorSpace *) | - getColorSpace |
| Get the color space that current color belongs to. More... | |
| (id) | - init |
| Construct an empty color. | |
| (id) | - initWithColor_space: |
| Constructor, with a color space object. More... | |
| (id) | - initWithOther: |
| Constructor, with another color object. More... | |
| (BOOL) | - isEmpty |
| Check whether current object is empty or not. More... | |
Properties | |
| FSFloatArray * | value |
| Get or Set component value array. More... | |
This class represents a color.
| - (FSColor *) convertToCMYK: | (FSColorSpaceRenderingIntent) | intent |
Convert to a CMYK color.
| [in] | intent | (Reserved) Rendering intent used for color conversion. |
| - (FSColor *) convertToRGB: | (FSColorSpaceRenderingIntent) | intent |
Convert to a RGB color.
| [in] | intent | (Reserved) Rendering intent used for color conversion. |
| - (FSColorSpace *) getColorSpace |
Get the color space that current color belongs to.
| - (id) initWithColor_space: | (FSColorSpace*) | color_space |
Constructor, with a color space object.
| [in] | color_space | A valid color space object. |
| - (id) initWithOther: | (FSColor*) | other |
Constructor, with another color object.
| [in] | other | Another FSColor object. |
| - (BOOL) isEmpty |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
readwritenonatomicweak |
Get or 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 FSColor::getColorSpace, and then get the count of componets by function FSColorSpace::getComponentCount.