DL Logo

PDEImage Enumerations

PDEImageAttrFlags

Header: PEExpT.h:1868

Description

Flags for PDEImageAttrs. See the description of image attributes in "Image Dictionaries" in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 8.9.5, page 206.

You can find this document on the web store of the International Standards Organization (ISO).

.

Enum Constants

kPDEImageExternal=0x0001
The image is an XObject.
kPDEImageIsMask=0x0002
The image is an imagemask.
kPDEImageInterpolate=0x0004
interpolate is true.
kPDEImageHaveDecode=0x0008
The image has a decode array.
kPDEImageIsIndexed=0x0010
The image uses an indexed color space.
kPDEImageMaskedByPosition=0x0020
The image has a Mask key containing an ImageMask stream.
kPDEImageMaskedByColor=0x0040
The image has a Mask key containing an array of color values.

PDEImageColorSpaceFlags

Header: PEExpT.h:1917

Description

Flags to enable PDEImageGetColorSpaceEx() to return a color space with a particular bpc, depending on the image's bpc.

Enum Constants

kPDEImageConvert16bpcColorSpace=0x0001
Indicates conversion of the color space of 16 bpc image to 8 bpc.

PDEImageDataFlags

Header: PEExpT.h:1900

Description

Enum Constants

kPDEImageEncodedData=0x0001
Indicates that the filter is active; data is encoded.
kPDEImageAllowDelayedRead=0x0002
kPDEImage16bpcData=0x0004
Indicates if the accompanying image data is 16-bit. Should be passed in for 16-bit images to PDEImageGetData/PDEImageGetDataStm to prevent the return of 8-bit converted data.

PDEImage Typedefs

PDEImage

Header: PEExpT.h:183

Description

A PDEElement that contains an Image XObject or an inline image. You can associate data or a stream with an image.

Related Methods

Syntax

typedef struct _t_PDEImage *PDEImage;

Returned From

Used By

PDEImageFlate

Header: PEExpT.h:415

Description

A reference to a PDEImageFlate.

Syntax

typedef struct _t_PDEImageFlate *PDEImageFlate;

Returned From

Used By

PDEImage Structures

_t_PDEImageAttrs

Header: PEExpT.h:902

Description

Attributes of a PDEImage.

Related Methods

Syntax

struct _t_PDEImageAttrs {
ASUns32 flags;
PDEImageAttrFlags indicating image attributes.
ASInt32 width;
The width of the image corresponding to the Width key in the image dictionary.
ASInt32 height;
The height of the image corresponding to the Height key in the image dictionary.
ASInt32 bitsPerComponent;
The number of bits used to represent each color component in the image corresponding to the BitsPerComponent key in the image dictionary.
ASFixed decode [8];
An array of numbers specifying the mapping from sample values in the image to values appropriate for the current color space. These values correspond to the Decode key in the image dictionary.
ASAtom intent;
The color rendering intent corresponding to the Intent key in the image dictionary.
ASInt32 numComponents;
DLADD: 12Feb2024- Added numComponents as part odf PDEImage Attributes. The number of color components in the image's colorspace.
} PDEImageAttrs, *PDEImageAttrsP, PDEImageFlateAttrs, *PDEImageFlateAttrsP;

Used By

_t_PDEImageJPXAttrs

Header: PEExpT.h:2394

Description

Attributes of a JPX image.

Syntax

struct _t_PDEImageJPXAttrs {
ASUns32 flags;
ASInt32 width;
ASInt32 height;
ASInt32 tileWidth;
ASInt32 tileHeight;
ASInt32 nResolutions;
ASInt32 nComponents;
ASInt32 bpc [24];
ASFixed decode [24];
} PDEImageJPXAttrs, *PDEImageJPXAttrsP;

Used By

PDEImage Functions

PDEImageAcquireImageFlate

Header: PERProcs.h:2684

Description

Acquires the PDEImageFlate resource of the PDEImage content element when the image filter type is "FlateDecode", or 0 if it is not.

Call PDERelease() to dispose of the PDEImageFlate when finished with it.

Syntax

PDEImageFlate PDEImageAcquireImageFlate(IN PDEImage image);

Parameters

image
IN/OUT The PDEImage object.

Returns

a PDEImageFlate resource object.

Exceptions

PDEImageAcquireImageJPX

Header: PERProcs.h:2696

Description

Acquires the PDEImageJPX resource of the PDEImage content element when the image filter type is "JPXDecode", or 0 if it is not.

Call PDERelease() to dispose of the PDEImageJPX when finished with it.

Syntax

PDEImageJPX PDEImageAcquireImageJPX(IN PDEImage image);

Parameters

image
IN/OUT The PDEImage object.

Returns

a PDEImageJPX resource object.

Exceptions

PDEImageCreate

Header: PEWProcs.h:597

Description

Superseded by PDEImageCreateEx() in Acrobat 10.0. Creates an image object.

The image data may be specified as a stream or as a buffer. If data is non- NULL, dataStm is ignored.

See PDEImageSetDataStm() for information on handling the stream.

The caller must dispose of dataStm after calling this method.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreate(IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize, IN ASFixedMatrixP matrixP, IN ASUns32 flags, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP, IN PDEFilterArrayP filtersP, IN ASStm dataStm, IN ASUns8 *data, IN ASUns32 encodedLen);

Parameters

attrsP
IN/OUT A pointer to a PDEImageAttrs object with attributes of the image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.
matrixP
IN/OUT A pointer to an ASFixedMatrix that holds the transformation matrix to use for the image.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, and the data is provided directly (not as a stream), then encodedLen must specify the length of data.
colorSpace
IN/OUT The color space of the image. When the image is an image mask, colorSpace is the color space of the colorValueP argument.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.
filtersP
IN/OUT A pointer to a PDEFilterArray structure that specifies which filters to use in encoding the contents; it may be NULL. Filters will be used to encode the data in the order in which they are specified in the array.
dataStm
IN/OUT The stream holding the image data.
data
IN/OUT The image data. If data is non- NULL, dataStm is ignored. If there is a great deal of data, as for a large image, it is recommended you use the dataStm parameter for the image data or use the PDEImageCreateFromCosObj() method.
encodedLen
IN/OUT The encoded length of data in bytes.

Returns

The image.

Exceptions

PDEImageCreateEx

Header: PEWProcs.h:3423

Description

Creates an image object. Supersedes PDEImageCreate() in Acrobat 10.0.

The image data may be specified as a stream or as a buffer. If dataStm is non- NULL, data is ignored.

See PDEImageSetDataStm() for information on handling the stream.

The caller must dispose of dataStm after calling this method.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateEx(IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize, IN ASDoubleMatrixP matrixP, IN ASUns32 flags, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP, IN PDEFilterArrayP filtersP, IN ASStm dataStm, IN ASUns8 *data, IN ASUns64 encodedLen);

Parameters

attrsP
IN/OUT A pointer to a PDEImageAttrs object with attributes of the image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.
matrixP
IN/OUT A pointer to an ASDoubleMatrix that holds the transformation matrix to use for the image.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, and the data is provided directly (not as a stream), then encodedLen must specify the length of data.
colorSpace
IN/OUT The color space of the image. When the image is an image mask, colorSpace is the color space of the colorValueP argument.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.
filtersP
IN/OUT A pointer to a PDEFilterArray structure that specifies which filters to use in encoding the contents; it may be NULL. Filters will be used to encode the data in the order in which they are specified in the array.
dataStm
IN/OUT The stream holding the image data.
data
IN/OUT The image data. If dataStm is non- NULL, data is ignored. If there is a great deal of data, as for a large image, it is recommended you use the dataStm parameter for the image data or use the PDEImageCreateFromCosObjEx() method.
encodedLen
IN/OUT The encoded length of data in bytes.

Returns

The image.

Exceptions

PDEImageCreateFromCosObj

Header: PEWProcs.h:628

Description

Superseded by PDEImageCreateFromCosObjEx() in Acrobat 10.0. Creates an image object from a Cos object.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateFromCosObj(IN const CosObj *imageObjP, IN ASFixedMatrixP matrixP, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP);

Parameters

imageObjP
IN/OUT The Cos object for the image.
matrixP
IN/OUT A pointer to an ASFixedMatrix that holds the transformation matrix to use for the image.
colorSpace
IN/OUT The color space used for the image, if the image is an image mask; otherwise, set it to NULL.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.

Returns

An image corresponding to the Cos object.

Exceptions

PDEImageCreateFromCosObjEx

Header: PEWProcs.h:3492

Description

Creates an image object from a Cos object. Supersedes PDEImageCreateFromCosObj() in Acrobat 10.0.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateFromCosObjEx(IN const CosObj *imageObjP, IN ASDoubleMatrixP matrixP, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP);

Parameters

imageObjP
IN/OUT The Cos object for the image.
matrixP
IN/OUT A pointer to an ASDoubleMatrix that holds the transformation matrix to use for the image.
colorSpace
IN/OUT The color space used for the image, if the image is an image mask; otherwise, set it to NULL.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.

Returns

An image corresponding to the Cos object.

Exceptions

PDEImageCreateInCosDoc

Header: PEWProcs.h:2851

Description

Superseded by PDEImageCreateInCosDocEx() in Acrobat 10.0. Creates an image object like PDEImageCreate(), except that the client can specify the CosDoc in which the image is created.

The image data may be specified as a stream or as a buffer. If data is non- NULL, dataStm is ignored.

See PDEImageSetDataStm() for information on handling the stream.

The caller must dispose of dataStm after calling this method.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateInCosDoc(IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize, IN ASFixedMatrixP matrixP, IN ASUns32 flags, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP, IN PDEFilterArrayP filtersP, IN ASStm dataStm, IN ASUns8 *data, IN ASUns32 encodedLen, IN CosDoc cosDoc);

Parameters

attrsP
IN/OUT A pointer to a PDEImageAttrs object with attributes of the image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.
matrixP
IN/OUT A pointer to an ASFixedMatrix that holds the transformation matrix to use for the image.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, and the data is provided directly (not as a stream), then encodedLen must specify the length of data.
colorSpace
IN/OUT The color space of the image. When the image is an image mask, colorSpace is the color space of the colorValueP argument.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.
filtersP
IN/OUT A pointer to a PDEFilterArray structure that specifies which filters to use in encoding the contents; it may be NULL. Filters will be used to encode the data in the order in which they are specified in the array.
dataStm
IN/OUT The stream holding the image data.
data
IN/OUT The image data. If data is non- NULL, dataStm is ignored. If there is a great deal of data, as for a large image, it is recommended you use the dataStm parameter for the image data or use the PDEImageCreateFromCosObj() method.
encodedLen
IN/OUT The encoded length of data in bytes.
cosDoc
IN/OUT The document in which the image is created.
cosDoc
IN/OUT Document in which to put Cos representation of resource. May be NULL.

Returns

The image.

Exceptions

PDEImageCreateInCosDoc64

Header: PEWProcs.h:3220

Description

Superseded by PDEImageCreateInCosDocEx() in Acrobat 10.0. Creates an image object like PDEImageCreateInCosDoc(), except that the client can create an image with a large amount of data.

The image data may be specified as a stream or as a buffer. If data is non- NULL, dataStm is ignored.

See PDEImageSetDataStm() for information on handling the stream.

The caller must dispose of dataStm after calling this method.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateInCosDoc64(IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize, IN ASFixedMatrixP matrixP, IN ASUns32 flags, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP, IN PDEFilterArrayP filtersP, IN ASStm dataStm, IN ASUns8 *data, IN ASUns64 encodedLen, IN CosDoc cosDoc);

Parameters

attrsP
IN/OUT A pointer to a PDEImageAttrs object with attributes of the image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.
matrixP
IN/OUT A pointer to an ASFixedMatrix that holds the transformation matrix to use for the image.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, and the data is provided directly (not as a stream), then encodedLen must specify the length of data.
colorSpace
IN/OUT The color space of the image. When the image is an image mask, colorSpace is the color space of the colorValueP argument.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.
filtersP
IN/OUT A pointer to a PDEFilterArray structure that specifies which filters to use in encoding the contents; it may be NULL. Filters will be used to encode the data in the order in which they are specified in the array.
dataStm
IN/OUT The stream holding the image data.
data
IN/OUT The image data. If data is non- NULL, dataStm is ignored. If there is a great deal of data, as for a large image, it is recommended you use the dataStm parameter for the image data or use the PDEImageCreateFromCosObj() method.
encodedLen
IN/OUT The encoded length of data in bytes.
cosDoc
IN/OUT The document in which the image is created.
cosDoc
IN/OUT The document in which to put the Cos representation of the resource. It may be NULL.

Returns

The image.

Exceptions

PDEImageCreateInCosDocEx

Header: PEWProcs.h:3367

Description

Creates an image object like PDEImageCreateInCosDoc(), except that the client can create an image with a large amount of data, and using a double precision transformation matrix. Supersedes PDEImageCreateInCosDoc() and PDEImageCreateInCosDoc64() in Acrobat 10.0.

The image data may be specified as a stream or as a buffer. If dataStm is non- NULL, data is ignored.

See PDEImageSetDataStm() for information on handling the stream.

The caller must dispose of dataStm after calling this method.

Call PDERelease() to dispose of the returned image object when finished with it.

Syntax

PDEImage PDEImageCreateInCosDocEx(IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize, IN ASDoubleMatrixP matrixP, IN ASUns32 flags, IN PDEColorSpace colorSpace, IN PDEColorValueP colorValueP, IN PDEFilterArrayP filtersP, IN ASStm dataStm, IN ASUns8 *data, IN ASUns64 encodedLen, IN CosDoc cosDoc);

Parameters

attrsP
IN/OUT A pointer to a PDEImageAttrs object with attributes of the image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.
matrixP
IN/OUT A pointer to an ASDoubleMatrix that holds the transformation matrix to use for the image.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, and the data is provided directly (not as a stream), then encodedLen must specify the length of data.
colorSpace
IN/OUT The color space of the image. When the image is an image mask, colorSpace is the color space of the colorValueP argument.
colorValueP
IN/OUT A pointer to a PDEColorValue structure. If the image is an image mask, colorValueP must be provided.
filtersP
IN/OUT A pointer to a PDEFilterArray structure that specifies which filters to use in encoding the contents; it may be NULL. Filters will be used to encode the data in the order in which they are specified in the array.
dataStm
IN/OUT The stream holding the image data.
data
IN/OUT The image data. If dataStm is non- NULL, data is ignored. If there is a great deal of data, as for a large image, it is recommended you use the dataStm parameter for the image data or use the PDEImageCreateFromCosObjEx() method.
encodedLen
IN/OUT The encoded length of data in bytes.
cosDoc
IN/OUT The document in which the image is created.
cosDoc
IN/OUT The document in which to put the Cos representation of the resource. It may be NULL.

Returns

The image.

Exceptions

PDEImageDataIsEncoded

Header: PERProcs.h:826

Description

Determines if image data is encoded or not. It is used only for inline images; it is not relevant to XObject images.

It always returns false for XObject images; XObject image data can be obtained from PDEImageGetData() or PDEImageGetDataStm(), either encoded or decoded.

If an inline image is obtained via PDEContentCreateFromCosObj() or related methods, the inline image data is always decoded. That is, if PDFEdit parses the stream, the data is always decoded. Only if PDEImageCreate() is used to explicitly create a new image using encoded data does PDEImageDataIsEncoded() return true.

Related Methods

Syntax

ASBool PDEImageDataIsEncoded(IN PDEImage image, OUT ASUns32 *encodedLenP);

Parameters

image
IN/OUT The image to examine.
encodedLenP
IN/OUT (Filled by the method) The length of the encoded data. If the data is encoded, the method returns true.

Returns

true if PDEImageGetData returns encoded data, false otherwise. It returns false for XObject images.

Exceptions

PDEImageGetAttrs

Header: PERProcs.h:766

Description

Gets the attributes for an image.

Syntax

void PDEImageGetAttrs(IN PDEImage image, IN PDEImageAttrsP attrsP, IN ASUns32 attrsSize);

Parameters

image
IN/OUT The image whose attributes are obtained.
attrsP
IN/OUT (Filled by the method) A pointer to a PDEImageAttrs structure with attributes of image.
attrsSize
IN/OUT The size of the attrsP buffer in bytes.

Exceptions

PDEImageGetColorSpace

Header: PERProcs.h:786

Description

Gets the color space object for an image.

Note: This method does not change the reference count of the returned PDEColorSpace.

Syntax

PDEColorSpace PDEImageGetColorSpace(IN PDEImage image);

Parameters

image
IN/OUT The image whose color space is obtained.

Returns

Color space for image. It returns NULL if image is an image mask.

PDEImageGetColorSpaceEx

Header: PERProcs.h:3015

Description

Retrieves a PDEImage object's color space, in the desired bits per component, based on the flags parameter.

Related Methods

Syntax

PDEColorSpace PDEImageGetColorSpaceEx(IN PDEImage image, IN ASUns32 flags);

Parameters

image
IN The PDEImage instance whose color space is desired.
flags
IN A set of flags to specify the desired bits per component (bpc) of the returned color space.

PDEImageGetCosObj

Header: PERProcs.h:925

Description

Gets a Cos object for an image.

Syntax

void PDEImageGetCosObj(IN PDEImage image, OUT CosObj *cosObjP);

Parameters

image
IN/OUT The image whose Cos object is obtained.
cosObjP
IN/OUT (Filled by the method) The Cos object for the image.

Exceptions

PDEImageGetData

Header: PERProcs.h:858

Description

Gets an image's data.

If the image is an XObject image, data is always returned as decoded data.

See the note about inline images under PDEImageDataIsEncoded().

Syntax

void PDEImageGetData(IN PDEImage image, IN ASUns32 flags, IN ASUns8 *buffer);

Parameters

image
IN/OUT The image whose data is obtained.
flags
IN/OUT Unused- must be zero.
buffer
IN/OUT The image data. If the data is decoded, buffer must be large enough to contain the number of bytes specified in the PDEImageAttrs structure obtained by PDEImageGetAttrs(). If the data is encoded, buffer must be large enough to contain the number of bytes in the encodedLenP parameter obtained by PDEImageDataIsEncoded().

Exceptions

PDEImageGetDataLen

Header: PERProcs.h:893

Description

Gets the length of data for an image.

Related Methods

Syntax

ASInt32 PDEImageGetDataLen(IN PDEImage image);

Parameters

image
IN/OUT The image whose data length is obtained.

Returns

The number of bytes of image data, specified by the width, height, bits per component, and color space of the image.

Exceptions

PDEImageGetDataLen64

Header: PEWProcs.h:3159

Description

Gets the length of data for an image.

Related Methods

Syntax

ASInt64 PDEImageGetDataLen64(IN PDEImage image);

Parameters

image
IN/OUT The image whose data length is obtained.

Returns

The number of bytes of image data, specified by the width, height, bits per component, and color space of the image. Clients should switch to this routine. PDEImageGetDataLen() will raise an error if it encounters an image with a length that is larger than 2^31- 1.

Exceptions

PDEImageGetDataStm

Header: PERProcs.h:879

Description

Gets a data stream for an image. It may only be called for XObject images.

The caller must dispose of the returned ASStm by calling ASStmClose.

Syntax

ASStm PDEImageGetDataStm(IN PDEImage image, IN ASUns32 flags);

Parameters

image
IN/OUT The image whose data stream is obtained.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, data is returned in encoded form. Otherwise, data is decoded.

Returns

The stream for the image.

Exceptions

PDEImageGetDecodeArray

Header: PERProcs.h:1863

Description

Gets the decode array from the attributes of the image. This array specifies the parameters used with the array of filters used to decode the image. This should be called first with a NULL decode to obtain the number of elements that may be returned so that a properly sized array can be allocated for a subsequent call. There are two decode entries per colorant in normal use.

Related Methods

Syntax

ASUns32 PDEImageGetDecodeArray(IN PDEImage image, OUT ASFixed *decode, IN ASUns32 decodeSize);

Parameters

image
The image whose decode array is obtained.
decode
(Filled by the method) A pointer to the decode array. If it is NULL, the number of decode elements required is returned.
decodeSize
The number of elements in decode.

Returns

The number of elements in the decode array.

PDEImageGetFilterArray

Header: PERProcs.h:912

Description

Gets the filter array for an image.

Syntax

ASInt32 PDEImageGetFilterArray(IN PDEImage image, OUT PDEFilterArrayP filtersP);

Parameters

image
IN/OUT The image whose filter array is obtained.
filtersP
IN/OUT (Filled by the method) A pointer to PDEFilterArray structure to fill with the current filter array for the image. filtersP must be large enough to contain all of the elements. It may be NULL to obtain the number of filter elements.

Returns

The number of filter elements.

Exceptions

PDEImageGetMatteArray

Header: PERProcs.h:2219

Description

Gets the matte array for the image XObject.

Syntax

ASUns32 PDEImageGetMatteArray(IN PDEImage image, OUT ASFixed *matte, IN ASUns32 numComp);

Parameters

image
IN/OUT The image XObject.
matte
IN/OUT (Filled by the method) An array of values.
numComp
IN/OUT The number of values in matte.

Returns

The number of values copied.

PDEImageGetSMask

Header: PERProcs.h:2207

Description

Gets the soft mask for an image. Use PDERelease() to dispose of the object when it is no longer referenced.

Syntax

PDEImage PDEImageGetSMask(IN PDEImage image);

Parameters

image
An object of type PDEImage.

Returns

An object of type PDEImage.

Exceptions

PDEImageGetType

Header: PERProcs.h:2672

Description

Returns the type of image as "FlateDecode", "JPXDecode", or "Unknown" when the image filter is not one of these types.

Syntax

ASAtom PDEImageGetType(IN PDEImage image);

Parameters

image
IN/OUT The PDEImage object.

Returns

See above.

Exceptions

PDEImageHasSMask

Header: PERProcs.h:2197

Description

Checks whether the image has a soft mask.

Syntax

ASBool PDEImageHasSMask(IN PDEImage image);

Parameters

image
IN/OUT An object of type PDEImage.

Returns

true if the soft mask exists, false otherwise.

Exceptions

PDEImageIsCosObj

Header: PERProcs.h:798

Description

Determines if an image is an XObject image.

Related Methods

Syntax

ASBool PDEImageIsCosObj(IN PDEImage image);

Parameters

image
IN/OUT The image to examine.

Returns

true if the image is an XObject image, false otherwise.

Exceptions

PDEImageSetColorSpace

Header: PEWProcs.h:2232

Description

Sets the color space of the image.

Syntax

void PDEImageSetColorSpace(IN PDEImage image, IN PDEColorSpace space);

Parameters

image
IN/OUT The image whose color space is obtained.
space
IN/OUT An object of type PDEColorSpace.

Exceptions

PDEImageSetColorValue

Header: PERProcs.h:3408

Description

Sets an image's Color Value.

This call is valid only for a PDEImage which is an Image Mask

Syntax

void PDEImageSetColorValue(IN PDEImage image, IN PDEColorValueP color);

Parameters

image
IN/OUT The image whose data is set.
colorValue
IN/OUT The image data.

Exceptions

PDEImageSetData

Header: PEWProcs.h:513

Description

Sets data for an image.

Syntax

void PDEImageSetData(IN PDEImage image, IN ASUns32 flags, IN ASUns8 *buffer, IN ASUns32 encodedLen);

Parameters

image
IN/OUT The image whose data is set.
flags
IN/OUT A set of PDEImageDataFlags flags. If kPDEImageEncodedData is set, the data must be encoded for the current filters, and encodedLen is the length of the encoded data. If the kPDEImageEncodedData flag is not set, data is not encoded and encodedLen is the size of the decoded data.
buffer
IN/OUT The image data.
encodedLen
IN/OUT The length of the encoded data.

Exceptions

PDEImageSetDataStm

Header: PEWProcs.h:544

Description

Sets a data stream for an image. It can only be used for XObject images.

The caller must dispose of the stream by calling ASStmClose().

Syntax

void PDEImageSetDataStm(IN PDEImage image, IN ASUns32 flags, IN PDEFilterArrayP filtersP, IN ASStm stm);

Parameters

image
IN/OUT The image whose data stream is set.
flags
IN/OUT PDEImageDataFlags flags. If the kPDEImageEncodedData flag is set, the stream must be encoded.
filtersP
IN/OUT A pointer to a PDEFilterArray structure. If it is not NULL, it is used to build Cos objects for the Filter, DecodeParms, and EncodeParms objects. If filtersP is NULL and kPDEImageEncodedData is set in flags, the existing Filter and DecodeParms are used. If kPDEImageEncodedData is not set and filtersP is NULL, the existing Cos objects (if any) for Filter and DecodeParms are removed and the resulting image is no longer compressed. EncodeParms is set it to DecodeParms if it exists (unless the filter is DCTDecode, for which EncodeParms is mandatory).
stm
IN/OUT The stream for the image data.

Exceptions

PDEImageSetDecodeArray

Header: PEWProcs.h:1587

Description

Sets the decode array of an image.

Normally, the decode array is accessed through the decode field in the PDEImageAttrs structure. However, this method defines a decode array to handle images with a color space that has more than four components.

Syntax

void PDEImageSetDecodeArray(IN PDEImage image, IN ASFixed *decode, IN ASUns32 decodeSize);

Parameters

image
The image whose decode array is set.
decode
A pointer to the decode array.
decodeSize
The number of elements in the decode array.

PDEImageSetMatteArray

Header: PEWProcs.h:1996

Description

Sets the matte array for the image XObject.

Syntax

void PDEImageSetMatteArray(IN PDEImage image, IN ASFixed *matte, IN ASUns32 numComp);

Parameters

image
IN/OUT The image XObject.
matte
IN/OUT An array of values.
numComp
IN/OUT The number of values in mArray.

PDEImageSetSMask

Header: PEWProcs.h:1986

Description

Sets the soft mask.

Syntax

void PDEImageSetSMask(IN PDEImage image, IN PDEImage sMask);

Parameters

image
IN/OUT The image XObject.
sMask
IN/OUT The soft mask.

Exceptions