Function Reference


Creates a duplicate of a specified bitmap with a device-independent bitmap (DIB) section

#include <WinAPIGdi.au3>
_WinAPI_CopyBitmap ( $hBitmap )


$hBitmap Handle to the bitmap to be duplicated.

Return Value

Success: Handle to the new bitmap that was created.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.


When you are finished using the bitmap, destroy it using the _WinAPI_DeleteObject() function.



See Also

Search CopyImage in MSDN Library.