Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

fipWinImage Class Reference

#include <FreeImagePlus.h>

Inheritance diagram for fipWinImage:

fipImage fipGenericImage List of all members.

Detailed Description

A class designed for MS Windows (TM) platforms.

fipWinImage provides methods used to :

Version:
FreeImage 3.0
Author:
Hervé Drolon


Public Member Functions

Creation & Destruction
 fipWinImage (WORD width=0, WORD height=0, WORD bpp=0)
 Constructor.

 ~fipWinImage ()
 Destructor.

Copying
 fipWinImage (const fipImage &Img)
 Copy constructor.

 fipWinImage (const FIBITMAP *dib)
 Copy constructor.

HANDLE copyToHandle ()
 Clone function used for clipboard copy.

void copyFromHandle (HANDLE hMem)
 Copy constructor used for clipboard paste.

void copyFromBitmap (HBITMAP hbmp)
 Copy constructor.

Painting operations
void draw (HDC hDC, RECT &rcDest)
 Draw (stretch) the image on a HDC, using StretchDIBits.


Constructor & Destructor Documentation

fipWinImage::fipWinImage WORD  width = 0,
WORD  height = 0,
WORD  bpp = 0
[inline]
 

Constructor.

fipWinImage::~fipWinImage  )  [inline]
 

Destructor.

fipWinImage::fipWinImage const fipImage Img  )  [inline]
 

Copy constructor.

fipWinImage::fipWinImage const FIBITMAP *  dib  )  [inline]
 

Copy constructor.


Member Function Documentation

void fipWinImage::copyFromBitmap HBITMAP  hbmp  ) 
 

Copy constructor.

Converts a HBITMAP object to a FIBITMAP.

void fipWinImage::copyFromHandle HANDLE  hMem  ) 
 

Copy constructor used for clipboard paste.

Converts a global object to a FIBITMAP. The clipboard format must be CF_DIB.

HANDLE fipWinImage::copyToHandle  ) 
 

Clone function used for clipboard copy.

Convert the FIBITMAP image to a DIB, and transfer the DIB in a global bitmap handle.

void fipWinImage::draw HDC  hDC,
RECT &  rcDest
 

Draw (stretch) the image on a HDC, using StretchDIBits.

Parameters:
hDC Handle to the device context
rcDest Destination rectangle


The documentation for this class was generated from the following file: