DVP_LoadBitmap(
HWND:hWnd,
LPTSTR:lpszName,
LPVIEWERPLUGINFILEINFO:lpVPFileInfo,
LPSIZE:lpszDesiredSize,
HANDLE:hAbortEvent
)
→ HBITMAP
The DVP_LoadBitmap function is called to load a bitmap from a disk file.
Your DVP_LoadBitmap function must access the specified file and generate a bitmap image, which must be formatted and returned as a standard Windows HBITMAP handle (for example, created by a call to CreateCompatibleBitmap() or CreateDIBSection()). The size, bit depth and format of this bitmap are not restricted. However, in the case of thumbnail images, Directory Opus may pass a "suggested" size to your function. If you are able to generate scaled images you may wish to use this suggested size to speed up any image scaling that Directory Opus has to perform to reduce the size of the bitmap that you return to that specified by the user in their Thumbnail Preferences. For example, the JPEG file format lends itself to very quick image scaling by factors of ½, ¼, etc. If you ignore the suggested size parameter then Directory Opus will do its own scaling if necessary.