Hallo,
ich habe folgendes Problem:
1. Ich öffne ein Bild
2, Ich zeichne darauf Text
und dann sollte alles unter einem neuen Namen abgespeichert werden.
Aber das klappt nicht!
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <gdiplus.au3>
#include <ScreenCapture.au3>
#include <WinAPI.au3>
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
GUISetState(@SW_SHOW)
_GDIPlus_Startup()
[/autoit] [autoit][/autoit] [autoit]$hgraphics = _GDIPlus_GraphicsCreateFromHWND($form1)
;$Bild1 = _GDIPlus_ImageLoadFromFile(@ScriptDir&"\bk.jpg")
$Bild1 = _GDIPlus_BitmapCreateFromFile(FileOpenDialog("Bild auswählen", @UserProfileDir, "Bilder (*.*)"))
_GDIPlus_GraphicsDrawImage($hgraphics,$Bild1,0,0)
_GDIPlus_GraphicsDrawString($hGraphics, "Das ist ein Text", 50, 10,"Arial","50")
_GDIPlus_ImageSaveToFile($hGraphics, @ScriptDir & "\GDIPlus.jpg")
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Liebe Grüße
Ilse