typedef
PDEXYZColorFlt
PDEBlackPointFlt
;
typedef
struct
_t_PDEColorSpace
*
PDEColorSpace
;
typedef
PDEColorSpace
PDEPatternColorSpace
;
typedef
PDEXYZColorFlt
PDEWhitePointFlt
;
| |
float min ; | |
float max ; | |
|
A color space structure for PDEColorSpaceCreate(). See "Color Spaces" in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 8.6 page 138.
You can find this document on the web store of the International Standards Organization (ISO).
| |
|
| |
float x ; | |
float y ; | |
float z ; | |
|
| |
The size of the data structure. It must be set to
sizeof(PDEDeviceNColorData) . | |
The names of the colorants.
| |
The number of colorants.
| |
The alternate color space.
| |
The tintTransform dictionary or function. See the "Special Color Spaces" section in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 8.6.6, page 155.
| |
|
A structure describing a CalGray color space.
Default value: PDEGrayCalFlt
calGray
=
{{0,
0,
0},
{0,
0,
0},
1};
| |
float gamma ; | |
|
| |
Set the size to
sizeof(PDEICCColorData) . | |
A stream containing an ICC Profile.
| |
The number of color components (
1 , 3 , or 4 ). | |
(Optional) An alternate color space.
| |
|
| |
Set the size to
sizeof(PDEIndexedColorData) . | |
The base color space.
| |
The highest color value.
| |
char * lookup ; | Indexed color lookup data.
|
The number of bytes in the lookup data.
| |
|
A structure describing a Lab color space.
Default value: {{0,
0,
0},
{0,
0,
0},
{-100,
100},
{-100,
100}};
| |
|
A structure describing a CalRGB color space. It is the same as AGMRGBCalFlt (it is only available as part of the PDF Library SDK).
Default value: {{0,
0,
0},
{0,
0,
0},
1,
1,
1,
{1,
0,
0,
0,
1,
0,
0,
0,
1}};
| |
float redGamma ; | |
float greenGamma ; | |
float blueGamma ; | |
float matrix [ 9 ] ; | |
|
| |
The size of the data structure. It must be set to
sizeof(PDESeparationColorData) . | |
The name of the separation or colorant.
| |
The alternate color space.
| |
The tintTransform dictionary or function. See the "Special Color Spaces" section in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 8.6.6, page 155.
| |
|
Creates a new color space object of the specified type.
Call PDERelease() to dispose of the returned color space object when finished with it.
PDEColorSpace
PDEColorSpaceCreate(
ASAtom
family
,
PDEColorSpaceStruct
*
csStruct
);
family | IN/OUT Supports all PDF 1.3 color spaces, which include:
| ||||||||
csStruct | IN/OUT Data for the type of color space you want to create.
|
Creates a new color space object from a Cos object.
Call PDERelease() to dispose of the returned color space object when finished with it.
PDEColorSpace
PDEColorSpaceCreateFromCosObj(
IN
const
CosObj
*
cosObjP
);
cosObjP | IN/OUT Supports all PDF 1.3 color spaces, which include:
|
Creates a new color space object.
Call PDERelease() to dispose of the returned color space object when finished with it.
PDEColorSpace
PDEColorSpaceCreateFromName(
IN
ASAtom
name
);
name | IN/OUT The ASAtom for the name of the color space created. The name must be one of the following: DeviceCMYK, DeviceGray, or DeviceRGB.
|
Creates a color space object like PDEColorSpaceCreate(), except that the client can specify the CosDoc in which the color space object is created.
Call PDERelease() to dispose of the returned color space object when finished with it.
PDEColorSpace
PDEColorSpaceCreateInCosDoc(
IN
ASAtom
family
,
IN
PDEColorSpaceStruct
*
csStruct
,
IN
CosDoc
cosDoc
);
family | IN/OUT Supports all PDF 1.3 color spaces, which include:
| ||||||||
csStruct | IN/OUT Data for the type of color space you want to create.
| ||||||||
cosDoc | IN/OUT The document in which to put the Cos representation of resource. It may be
NULL . |
Gets the name of the base color space. This is a helper routine for indexed color spaces.
Call this method to obtain the base color space and color values for an uncolored pattern in PDFEdit.
ASAtom
PDEColorSpaceGetBase(
IN
PDEColorSpace
colorSpace
);
colorSpace | The base color space.
|
Gets the number of components in the base color space of an indexed color space.
For example, for [/
Indexed
/
DeviceRGB...]
, the number of components is 3
.
ASInt32
PDEColorSpaceGetBaseNumComps(
IN
PDEColorSpace
colorSpace
);
colorSpace | IN/OUT The indexed color space.
|
colorSpace
. void
PDEColorSpaceGetCTable(
IN
PDEColorSpace
colorSpace
,
OUT
ASUns8
*
colorTableP
);
colorSpace | IN/OUT The color space whose component information table is obtained.
|
colorTableP | IN/OUT (Filled by the method) The color lookup table, which is
numComps * (hiVal + 1) bytes long, where numComps is the number of components in the base colorSpace . Each entry in the table contains numComps bytes, and the table is indexed from 0 to hiVal , where hiVal is the highest index in the color table. The table is indexed from 0 to hival , thus the table contains hival + 1 entries. |
Gets the CosObj representation of the color space object.
For image masks, use PDEElementGetGState() to obtain color information.
void
PDEColorSpaceGetCosObj(
IN
PDEColorSpace
colorSpace
,
OUT
CosObj
*
cosObjP
);
colorSpace | IN/OUT The color space whose Cos object is obtained.
|
cosObjP | IN/OUT (Filled by the method) The Cos object for the color space.
|
colorSpace
. Any color space that is in the Resources dictionary of the page is returned as a Cos object. hiVal
, the actual number of entries is hiVal
+
1
. ASInt32
PDEColorSpaceGetHiVal(
IN
PDEColorSpace
colorSpace
);
colorSpace | IN/OUT An indexed color space.
|
hiVal
) in the color lookup table. ASAtom
PDEColorSpaceGetName(
IN
PDEColorSpace
colorSpace
);
colorSpace | IN/OUT A color space object.
|
Type of names
| Names
|
---|---|
Device-dependent names
| DeviceCMYK DeviceGray DeviceN DeviceRGB |
Device-independent names | CalGray CalRGB Lab ICCBased |
Special names | Indexed Pattern Separation |
ASInt32
PDEColorSpaceGetNumComps(
IN
PDEColorSpace
colorSpace
);
colorSpace | IN/OUT A color space object.
|
colorSpace
: Color space
| Return value
|
---|---|
DeviceGray
| 1 |
CalGray
| 1 |
Separation
| 1 |
DeviceRGB
| 3 |
CalRGB
| 3 |
DeviceCMYK
| 4 |
Lab
| 4 |
DeviceN
| The number of components dependent on the specific color space object.
|
ICCBased
| The number of components dependent on the specific color space object.
|
Indexed
| 1 |
Call PDEColorSpaceGetBaseNumComps() to get the number of components in the base color space.
Retrieves a PDEColorSpaceStruct
from a PDEColorSpace
. It supports all PDF version 1.3 color spaces except the Pattern
color space.
It is the responsibility of the caller to free the PDEColorSpaceStruct
and the underlying allocations.
void
PDEColorSpaceGetStruct(
IN
PDEColorSpace
cs
,
OUT
PDEColorSpaceStruct
*
pdeColorSpaceStruct
);
cs | IN/OUT The
PDEColorSpace for which the structure is required. |
pdeColorSpaceStruct | IN/OUT The
PDEColorSpaceStruct created for the color space. |