Layer | PDFEdit_Layer |
Object | PDEColorSpace |
A PDEColorSpace object is a reference to a color space used on a page. The color space is part of the graphics state attributes of a PDEElement. See Section 4.5, Color Spaces, in the PDF Reference, for details on color spaces and color operators.
Typedef | ||
---|---|---|
PDEColorSpace
A reference to a color space used on a page in a PDF file. The color space is part of the graphics state attributes of a PDEElement.
|
Union | ||
---|---|---|
PDEColorSpaceStruct
A color space structure for PDEColorSpaceCreate(). See Section 4.5 in the PDF Reference for information on color spaces.
|
Method | ||
---|---|---|
Creates a new color space object of the specified type.
|
||
PDEColorSpace PDEColorSpaceCreateFromCosObj(const CosObj* cosObjP)
Creates a new color space object from a Cos object.
|
||
PDEColorSpace PDEColorSpaceCreateFromName(INASAtom name)
Creates a new color space object.
|
||
PDEColorSpace PDEColorSpaceCreateInCosDoc(INASAtom family, INPDEColorSpaceStruct* csStruct, INCosDoc cosDoc)
Creates a color space object like PDEColorSpaceCreate(), except that the client can specify the CosDoc in which the color space object is created.
|
||
ASAtom PDEColorSpaceGetBase(INPDEColorSpace colorSpace)
Gets the name of the base color space. This is a helper routine for indexed color spaces.
|
||
ASInt32 PDEColorSpaceGetBaseNumComps(INPDEColorSpace colorSpace)
Gets the number of components in the base color space of an indexed color space.
|
||
Gets the CosObj representation of the color space object.
|
||
Gets the component information for an indexed color space.
|
||
ASInt32 PDEColorSpaceGetHiVal(INPDEColorSpace colorSpace)
Gets the highest index for the color lookup table for an indexed color space. Since the color table is indexed from zero to hiVal, the actual number of entries is hiVal + 1.
|
||
ASAtom PDEColorSpaceGetName(INPDEColorSpace colorSpace)
Gets the name of a color space object.
|
||
ASInt32 PDEColorSpaceGetNumComps(INPDEColorSpace colorSpace)
Calculates the number of components in a color space.
|
||
Retrieves a
PDEColorSpaceStruct
from a PDEColorSpace. It supports all PDF version 1.3 color spaces except the Pattern color space.
|
PDEColorSpace |
Product availability: All |
Platform availability: All |
typedef struct _t_PDEColorSpace* PDEColorSpace;
A reference to a color space used on a page in a PDF file. The color space is part of the graphics state attributes of a PDEElement.
See Also
File: PEExpT.h |
Line: 321 |
PDEColorSpaceStruct |
Product availability: All |
Platform availability: All |
union PDEColorSpaceStruct {
PDEGrayCalFlt calGray;
PDERGBCalFlt calRGB;
PDELabCalFlt lab;
PDEICCBasedColorData icc;
PDEIndexedColorData indexed;
PDEPatternColorSpace patternbase;
PDESeparationColorData sep;
PDEDeviceNColorData devn;
}
See Also
File: PEExpT.h |
Line: 2115 |
PDEColorSpaceCreate | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEColorSpace PDEColorSpaceCreate(ASAtom family, PDEColorSpaceStruct* csStruct)
Creates a new color space object of the specified type.
Call PDERelease() to dispose of the returned color space object when finished with it.
Parameters
family — | IN/OUT Supports all PDF 1.3 color spaces, which include:
|
|||||||||
csStruct — |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 1586 |
PDEColorSpaceCreateFromCosObj | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEColorSpace PDEColorSpaceCreateFromCosObj(const CosObj* cosObjP)
Creates a new color space object from a Cos object.
Call PDERelease() to dispose of the returned color space object when finished with it.
Parameters
cosObjP — | IN/OUT Supports all PDF 1.3 color spaces, which include:
|
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 1068 |
PDEColorSpaceCreateFromName | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEColorSpace PDEColorSpaceCreateFromName(INASAtom name)
Creates a new color space object.
Call PDERelease() to dispose of the returned color space object when finished with it.
Parameters
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. |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 1040 |
PDEColorSpaceCreateInCosDoc | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEColorSpace PDEColorSpaceCreateInCosDoc(INASAtom family, INPDEColorSpaceStruct* csStruct, INCosDoc cosDoc)
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.
Parameters
family — | IN/OUT Supports all PDF 1.3 color spaces, which include:
|
|||||||||
csStruct — | ||||||||||
cosDoc — | IN/OUT The document in which to put the Cos representation of resource. It may be |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 3441 |
PDEColorSpaceGetBase | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASAtom PDEColorSpaceGetBase(INPDEColorSpace colorSpace)
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.
Parameters
colorSpace — |
The ASAtom for the name of the base color space. Use ASAtomGetString() to obtain a C string for the ASAtom. |
See Also
colorObj2
object if the base color space is DeviceN. To get the color values, a client gets the base color space, determines the type and number of components of the value, and looks them up in the PDEColorValue field. Exceptions
Since
File: PERProcs.h |
Line: 1289 |
PDEColorSpaceGetBaseNumComps | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 PDEColorSpaceGetBaseNumComps(INPDEColorSpace colorSpace)
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
.
Parameters
colorSpace — |
The number of components in |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 1610 |
PDEColorSpaceGetCosObj | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDEColorSpaceGetCosObj(INPDEColorSpace colorSpace, OUTCosObj* cosObjP)
Gets the CosObj representation of the color space object.
For image masks, use PDEElementGetGState() to obtain color information.
Parameters
colorSpace — | ||
cosObjP — | IN/OUT (Filled by the method) The Cos object for the color space. |
Exceptions
Since
File: PERProcs.h |
Line: 1234 |
PDEColorSpaceGetCTable | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDEColorSpaceGetCTable(INPDEColorSpace colorSpace, OUTASUns8* colorTableP)
Gets the component information for an indexed color space.
Parameters
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 |
Exceptions
Since
File: PERProcs.h |
Line: 1324 |
PDEColorSpaceGetHiVal | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 PDEColorSpaceGetHiVal(INPDEColorSpace colorSpace)
Gets the highest index for the color lookup table for an indexed color space. Since the color table is indexed from zero to hiVal
, the actual number of entries is hiVal + 1
.
Parameters
colorSpace — |
Exceptions
Since
File: PERProcs.h |
Line: 1303 |
PDEColorSpaceGetName | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASAtom PDEColorSpaceGetName(INPDEColorSpace colorSpace)
Gets the name of a color space object.
Parameters
colorSpace — |
The color space object's name. It supports all PDF 1.3 color spaces, which include:
|
Exceptions
Since
File: PERProcs.h |
Line: 1205 |
PDEColorSpaceGetNumComps | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 PDEColorSpaceGetNumComps(INPDEColorSpace colorSpace)
Calculates the number of components in a color space.
Parameters
colorSpace — |
The number of components in
Call PDEColorSpaceGetBaseNumComps() to get the number of components in the base color space. |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 1264 |
PDEColorSpaceGetStruct | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDEColorSpaceGetStruct(INPDEColorSpace cs, OUTPDEColorSpaceStruct* pdeColorSpaceStruct)
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.
Parameters
cs — | IN/OUT The |
|
pdeColorSpaceStruct — | IN/OUT The |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 3296 |