muß mich wieder melden.
Ich habe da nochwas von UEZ gefunden
Funktioniert prima. Text in Zwischenablage und Bild mit Text wird angezeigt.
ABER: Wie kann ich das angezeigte in einem Ordner speichern?
GDIPlus habe ich noch keine Erfahrung
Spoiler anzeigen
#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include "Write Text on Bitmap.au3"
$iFile = FileOpenDialog("Select an Image", "", "Image (*.jpg;*.bmp;*.png;*gif)")
If @error Then Exit
_GDIPlus_Startup()
;Local $hImage = WTOB($iFile, "Dies ist ein Test", "Comic Sans MS", 11, -1, -1, 2, 2)
Local $hImage = WTOB($iFile, Clipget(), "Arial", 40, 200, 200, 2, 2)
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $hImage = ' & $hImage & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
Local $iWidth = _GDIPlus_ImageGetWidth($hImage)
Local $iHeight = _GDIPlus_ImageGetHeight($hImage)
Local $hGUI = GUICreate("GDI+ Write Text on Bitmap by UEZ 2010", $iWidth, $iHeight, -1, -1, $WS_POPUP)
GUISetState()
Local $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
_GDIPlus_GraphicsDrawImageRect($hGraphic, $hImage, 0, 0, $iWidth, $iHeight)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
_GDIPlus_ImageDispose($hImage)
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown()
Exit
[/autoit]Diese Datei braucht man