This is code taken from the HelpFile.
Am i able to use _WinAPI_GetObject() on $hClone, in order to find out its Size ?
If i am correct, could someone help me do it
I have never been very good with WInAPIs and GetObject has no example for me to twinker with.
[ autoit ]
#include #include _Main() Func _Main() Local $hBitmap, $hClone, $hImage, $iX, $iY ; Initialize GDI+ library _GDIPlus_Startup() ; Capture 32 bit bitmap $hBitmap = _ScreenCapture_Capture("") $hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap) ; Create 24 bit bitmap clone $iX = _GDIPlus_ImageGetWidth($hImage) $iY = _GDIPlus_ImageGetHeight($hImage) $hClone = _GDIPlus_BitmapCloneArea($hImage, 0, 0, $iX, $iY, $GDIP_PXF24RGB) ; Save bitmap to file _GDIPlus_ImageSaveToFile($hClone, @MyDocumentsDir & "\GDIPlus_Image.bmp") ; Clean up resources _GDIPlus_ImageDispose($hClone) _GDIPlus_ImageDispose($hImage) _WinAPI_DeleteObject($hBitmap) ; Shut down GDI+ library _GDIPlus_Shutdown() EndFunc ;==>_Main
Am i able to use _WinAPI_GetObject() on $hClone, in order to find out its Size ?
If i am correct, could someone help me do it
![:D](http://aut1.autoit-cdn.com/forum/public/style_emoticons/autoit/biggrin.gif)