PictureDIB from C#

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PictureDIB from C#

Postby wpeterson00 » Tue Jun 27, 2006 9:05 pm

Do you have an example of calling PictureDIB from managed code? I can't seem to get it to work.

Thanks,
wpeterson00
 
Posts: 6
Joined: Thu Jun 08, 2006 7:56 pm

Postby 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
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 3 guests

cron