#include "BIDIB.H"
HANDLE CALLBACK RotateDIB180(HANDLE hbitSource)
Description
This function rotates the device independent bitmap (DIB) 180 degrees, physically, bit by bit, in a counter clockwise direction.
Parameters
|
HANDLE |
hbitSource |
Handle to the DIB to be rotated. |
Return values
Handle to the newly created, rotated bitmap. NULL on error.
Programming notes
This function uses three DCs at once, so if it fails check the number of DCs in current use. Memory is allocated to handle at least one line of the bitmap, and it is freed when exited. The more memory provided, the faster execution proceeds.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
#include "BIDIB.H"
HANDLE hOriginalDIB, hRotatedDIB;
// create, or load original DIB
.
.
.
if ( (hRotatedDIB = RotateDIB180(hOriginalDIB)) == NULL)
{
// could not rotate DIB
// possible not enough memory or too many DCs are in use
}