#include <FreeImagePlus.h>
Inheritance diagram for fipWinImage:
fipWinImage provides methods used to :
Public Member Functions | |
Creation & Destruction | |
fipWinImage (FREE_IMAGE_TYPE image_type=FIT_BITMAP, WORD width=0, WORD height=0, WORD bpp=0) | |
Constructor. | |
~fipWinImage () | |
Destructor. | |
virtual void | clear () |
Destroy image data. | |
BOOL | isValid () const |
Returns TRUE if the image is allocated, FALSE otherwise. | |
Copying | |
fipWinImage & | operator= (const fipImage &src) |
Copy constructor. | |
fipWinImage & | operator= (const fipWinImage &src) |
Copy constructor Delete internal _display_dib data and copy tone mapping parameters. | |
HANDLE | copyToHandle () const |
Clone function used for clipboard copy. | |
BOOL | copyFromHandle (HANDLE hMem) |
Copy constructor used for clipboard paste. | |
BOOL | copyFromBitmap (HBITMAP hbmp) |
Copy constructor. | |
Clipboard operations | |
BOOL | copyToClipboard (HWND hWndNewOwner) const |
Clipboard copy. | |
BOOL | pasteFromClipboard () |
Retrieves data from the clipboard. | |
Screen capture | |
BOOL | captureWindow (HWND hWndApplicationWindow, HWND hWndSelectedWindow) |
Capture a window and convert it to an image. | |
Painting operations | |
void | draw (HDC hDC, RECT &rcDest) const |
Draw (stretch) the image on a HDC, using StretchDIBits. | |
void | drawEx (HDC hDC, RECT &rcDest, BOOL useFileBkg=FALSE, RGBQUAD *appBkColor=NULL, FIBITMAP *bg=NULL) const |
Draw (stretch) the image on a HDC, using StretchDIBits. | |
void | setToneMappingOperator (FREE_IMAGE_TMO tmo, double first_param=0, double second_param=0) |
Select a tone mapping algorithm used for drawing and set the image as modified so that the display will be refreshed. | |
void | getToneMappingOperator (FREE_IMAGE_TMO *tmo, double *first_param, double *second_param) const |
Get the tone mapping algorithm used for drawing, with its parameters. | |
Protected Attributes | |
FIBITMAP * | _display_dib |
DIB used for display (this allow to display non-standard bitmaps). | |
BOOL | _bDeleteMe |
remember to delete _display_dib | |
FREE_IMAGE_TMO | _tmo |
tone mapping operator | |
double | _tmo_param_1 |
first tone mapping algorithm parameter | |
double | _tmo_param_2 |
second tone mapping algorithm parameter |
|
Constructor.
|
|
Destructor.
|
|
Capture a window and convert it to an image.
|
|
Destroy image data.
Reimplemented from fipImage. |
|
Copy constructor.
|
|
Copy constructor used for clipboard paste.
|
|
Clipboard copy.
|
|
Clone function used for clipboard copy.
|
|
Draw (stretch) the image on a HDC, using StretchDIBits. When the image is transparent or has a file background, this function composite the foreground image against a checkerboard background image.
|
|
Draw (stretch) the image on a HDC, using StretchDIBits.
When the image is transparent or has a file background, this function can composite the foreground image against a checkerboard background image, against a single background color or against a user background image.
|
|
Get the tone mapping algorithm used for drawing, with its parameters.
|
|
Returns TRUE if the image is allocated, FALSE otherwise.
Reimplemented from fipImage. |
|
Copy constructor Delete internal _display_dib data and copy tone mapping parameters. Copy also the base class image data.
|
|
Copy constructor. Delete internal _display_dib data and copy the base class image data. Tone mapping parameters are left unchanged.
Reimplemented from fipImage. |
|
Retrieves data from the clipboard. The clipboard format must be CF_DIB.
|
|
Select a tone mapping algorithm used for drawing and set the image as modified so that the display will be refreshed.
|
|
remember to delete _display_dib
|
|
DIB used for display (this allow to display non-standard bitmaps).
|
|
tone mapping operator
|
|
first tone mapping algorithm parameter
|
|
second tone mapping algorithm parameter
|