| Top Previous Next |
|
The AddImageMemAsResource method adds a graphic item (from memory) to a list of Image resources.
Syntax
Parameters
ImageBuf The starting address of the memory where image data is stored.
BufSize The size of the buffer.
ImageType The type of the image.
Return Value
Index of the image in the resource. This index can be used as parameter to draw the same graphic at different locations using DrawImageRI method.
Remarks
The AddImageMemAsResource method adds an image as a resource to the engine. All engines maintain a list of reusable resources. Once an image is added to the engine as a resource, it can be used any number of times in the document. This will allow the engine to write the image information in an optimized way so that file size is kept to minimum. Following are the values of TxgtImageType:
See Also
AddImageAsResource, DrawImageRI
|