#include "BIDIB.H"
HANDLE CALLBACK RotateDIB270(HANDLE hbitSource)
Description
This function rotates the device independent bitmap (DIB) 270 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 DIB. 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 DIB, 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 ( (hRotatedBitmap = RotateDIB270(hOriginalDIB)) == NULL)
{
// could not rotate DIB
// possible not enough memory or too many DCs are in use
}