Hello,
I want to add some special functions to the ImageViewer
like saving a resized image and convert to a different graphic-format.
Is it possible, to use functions defined in FREEIMAGE.dll ?
Maybe anybody knows a working 3.party-graphic-library to use with FWH ?
A freeimage-sample from the doc-file :
FreeImage_Clone
----------------------
DLL_API FIBITMAP * DLL_CALLCONV FreeImage_Clone(FIBITMAP *dib);
Makes an exact reproduction of an existing bitmap, including metadata and attached profile if any.
// this code assumes there is a bitmap loaded and
// present in a variable called ‘dib’
FIBITMAP *clone = FreeImage_Clone(dib);
if (clone) {// clone succeeded! FreeImage_Unload(clone)}
FreeImage_Unload
-----------------------
DLL_API void DLL_CALLCONV FreeImage_Unload(FIBITMAP *dib);
Deletes a previously loaded FIBITMAP from memory.
The VB-functions :
---------------------
Public Declare Function FreeImage_Clone Lib "FreeImage.dll" Alias "_FreeImage_Clone@4" ( _ByVal dib As Long) As Long
Public Declare Sub FreeImage_Unload Lib "FreeImage.dll" Alias "_FreeImage_Unload@4" ( _ByVal dib As Long)
Regards
Uwe