Hallo!
Habe nach laaaaaangem suchen endlich eine möglichkeit gefunden wie man .png Files (mit Alpha Channel) unkompliziert in ein GUI zeichnet.
Nur hab ich jetzt folgendes problem: Wie kann ich das erstellte Bild wieder ausblenden/löschen ?!?!?!
#include <GDIPlus.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
_GDIPlus_Startup()
$hwnd = GUICreate("test", 300, 300)
GUICtrlCreatePic("", 10, 10, 280, 280)
GUISetState()
$graphics = _GDIPlus_GraphicsCreateFromHWND($hwnd)
$image = _GDIPlus_ImageLoadFromFile("bmp\line.png")
_GDIPlus_GraphicsDrawImageRect($graphics, $image, 10, 10, 280, 20)
GUISetState()
[/autoit][autoit][/autoit][autoit]Do
$msg = GUIGetMsg()
Until $msg = -3
_WinAPI_DeleteObject($image)
_GDIPlus_GraphicsDispose($graphics)
_GDIPlus_Shutdown()
Vielleicht fällt euch ja was ein!
thx im Vorraus!