Index

C/C++ Functions

pdImgGetLast

DT_SLONG pdImgGetLast(DT_PDDOC power_doc)

Short Description: Get last image in document

The pdImgGetLast function returns the index of the last PowerDoc image in a Power Engine document.

Parameters

ParameterDescription

power_doc

Handle of the associated Power Engine document.

Return Value

The index of the last PowerDoc image in the document. Thus, if there are no PowerDoc images in the document the function will return -1.

Comments

In Power Engine API, each PowerDoc image has a unique index. The index of a PowerDoc image simply represents its position (or location) in the Image Allocation Array. When a new PowerDoc image is added to the document, the engine will always append it to the end of this array. Similarly, when a PowerDoc image is deleted, the engine will always remove it from this array and move all subsequent PowerDoc images down (toward the beginning of the array) by one position.

Related Functions

pdImgAdd, pdImgDel

 

Index