The ImgGetLast function returns the index of the last PowerDoc image in a Power Engine document.
Parameter | Description |
---|
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.
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.