by IDEAL Software Support » Mon Jul 03, 2006 11:16 am
Unfortunately we have no sample code available, except for C++. The basic trick is that you can not use a BMP file directly, you must convert the BMP file to a DIB, which basically means to strip off the file header.
We do not recommend to use this function, because it must hold the image always in memory. If you are using the standard Picture() method, which reads a file from disk, it can cache the image, which means it will be removed from memory if it is not displayed / printed for a longer period of time, and it will be reloaded as necessary.
Furthermore the cache is not related to a specific VPE document, it is shared between all documents of one and the same instance of VPE. This means, if you are loading an image with the Picture() method, it is cached even after calling CloseDoc(). If you are calling OpenDoc() later and read the same image, it is still in the cache and it won't be loaded again from disk.
Regards
T. Radde
IDEAL Software GmbH