#include "BIDIB.H"
BOOL CALLBACK CutDIB( HDIB hDib,
DWORD height,
HDIB* hDib1,
HDIB* hDib2)
Description
The CutDIB method cuts the image on the specified height. The second parameter denotes the distance in pixels from the top of the image. The CutDIB works for only 1, 4, 8, 24 bit per pixel images.
Parameters
|
HDIB |
hDib |
Handle of the DIB. |
|
DWORD |
height |
Specifies the cutting location in pixels from the |
|
HDIB* |
hDib1 |
Pointer to the window handle of the bottom of the |
|
HDIB* |
hDib2 |
Pointer to the window handle of the top of the original image. |
Return values
It is TRUE on success otherwise FALSE.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
#include "BIDIB.H"
…
HDIB hDib1 = NULL, hDib2 = NULL;
BOOL ok;
BeginWaitCursor();
ok = CutDIB(hDib, height, &hDib1, &hDib2);
//hDib is the HANDLE of the original DIB.
//height specifies the cutting location.
EndWaitCursor();
if (ok)
…