A new version of FabPaint will be has been released ! very soon.

This version, V3.0.1.5, is correcting a very annoying bug introduced in the early V3.x and that has broken the Copy/Paste operations but also the CreateFromScreen. In fact, the creation from a HBitmap was broken and any related function was not working.

As an add-on, this version will also offer you an access to ALL the format that FreeImage can WRITE ! Laughing


Currently, you can read any format, with this new function you can write any format :

Here is the definition of the function :

_dll FUNCTION DIBSaveAsAny(pWinBmp as ptr, pszFName as psz, FI_Flag as int, FIF as int ) as void PASCAL:FabPaint.FabDIBSaveAsAny
//p Save a DIB Object to a file
//a <pWinBMp> Pointer to the DIB Object to save
//a <pszFName> Name of the File to create
//a <FI_Flag is the flag to use in save operation. (look at FreeImage Help file for more info) 0 is the default value
//a <FIF> indicates what is the file format to use.
//d This function will save the desired DIB Object as any image format that FreeImage support.
/*
FIF_BMP        = 0,
FIF_ICO        = 1,
FIF_JPEG    = 2,
FIF_JNG        = 3,
FIF_KOALA    = 4,
FIF_LBM        = 5,
FIF_IFF = FIF_LBM,
FIF_MNG        = 6,
FIF_PBM        = 7,
FIF_PBMRAW    = 8,
FIF_PCD        = 9,
FIF_PCX        = 10,
FIF_PGM        = 11,
FIF_PGMRAW    = 12,
FIF_PNG        = 13,
FIF_PPM        = 14,
FIF_PPMRAW    = 15,
FIF_RAS        = 16,
FIF_TARGA    = 17,
FIF_TIFF    = 18,
FIF_WBMP    = 19,
FIF_PSD        = 20,
FIF_CUT        = 21,
FIF_XBM        = 22,
FIF_XPM        = 23,
FIF_DDS        = 24,
FIF_GIF     = 25,
FIF_HDR        = 26,
FIF_FAXG3    = 27,
FIF_SGI        = 28,
FIF_EXR        = 29,
FIF_J2K        = 30,
FIF_JP2        = 31
*/