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. |
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.
Search CopyImage in MSDN Library.