FlipBitmapHorizontal

#include "BIDIB.H"

 

BOOL CALLBACK FlipBitmapHorizontal(hBitmap)

Description

The function will  flip the bitmap horizontally.

Parameters

HBITMAP

hBitmap;

Handle to the bitmap to be flipped.

Return values

TRUE on success, otherwise FALSE.

Programming notes

This function uses three DCs at once, so if it fails, check the number of currently used DCs. Memory is allocated to handle at least one line of the bitmap, and it is freed when exit. The more memory provided, the faster execution.

Requirements

Header :     Declared in BiDIB.h; include BiDIB.h.

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.

Code example

#include "BIDIB.H"

HBITMAP hBitmap;

 

if (!FlipBitmapHorizontal(hBitmap))

{

  // error, check number of currently used DCs

}