Foxit PDF SDK
9.1
|
Instance Methods | |
(FSColor *) | - convertToCMYK |
Convert to a CMYK color. More... | |
(FSColor *) | - convertToCMYK: |
Convert to a CMYK color. More... | |
(FSColor *) | - convertToRGB |
Convert to a RGB color. More... | |
(FSColor *) | - convertToRGB: |
Convert to a RGB color. More... | |
(void) | - dealloc |
(FSColorSpace *) | - getColorSpace |
Get the color space that current color belongs to. More... | |
(void *) | - getCptr |
(id) | - init |
Construct an empty color. More... | |
(id) | - initWithColor_space: |
Constructor, with a color space object. More... | |
(id) | - initWithCptr:swigOwnCObject: |
(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... | |
Additional Inherited Members | |
![]() | |
BOOL | swigCMemOwn |
void * | swigCPtr |
This class represents a color.
- (FSColor *) convertToCMYK |
Convert to a CMYK color.
- (FSColor *) convertToCMYK: | (FSColorSpaceRenderingIntent) | intent |
Convert to a CMYK color.
[in] | intent | (Reserved) Rendering intent used for color conversion. |
- (FSColor *) convertToRGB |
Convert to a RGB color.
- (FSColor *) convertToRGB: | (FSColorSpaceRenderingIntent) | intent |
Convert to a RGB color.
[in] | intent | (Reserved) Rendering intent used for color conversion. |
- (void) dealloc |
Reimplemented from FSBase.
- (FSColorSpace *) getColorSpace |
Get the color space that current color belongs to.
- (void*) getCptr |
Reimplemented from FSBase.
- (id) init |
Construct an empty color.
- (id) initWithColor_space: | (FSColorSpace*) | color_space |
Constructor, with a color space object.
[in] | color_space | A valid color space object. |
- (id) initWithCptr: | (void *) | cptr | |
swigOwnCObject: | (BOOL) | ownCObject | |
Reimplemented from FSBase.
- (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.
|
readwritenonatomiccopy |
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.