#include <GDIPlus.au3>
#include <ScreenCapture.au3>
#include <WinAPI.au3>
_Main()
Func _Main()
Local $hImage1, $hImage2, $hGraphic
_GDIPlus_Startup ()
$hImage1 = _GDIPlus_BitmapCreateFromFile (@ScriptDir&'\1.jpg')
$hImage2 = _GDIPlus_BitmapCreateFromFile (@ScriptDir&'\2.png')
$hGraphic = _GDIPlus_ImageGetGraphicsContext ($hImage2)
_GDIPlus_GraphicsDrawImage ($hGraphic, $hImage1, 100, 100)
_GDIPlus_ImageSaveToFile ($hImage1,@ScriptDir&'\3.jpg')
_GDIPlus_ImageDispose ($hImage1)
_GDIPlus_ImageDispose ($hImage2)
_GDIPlus_ShutDown ()
EndFunc