- Offizieller Beitrag
Ich bräuchte mal Hilfe von den GDI+ Profis.
Und zwar geht es um dieses Skript-Beispiel (Icon im Anhang):
Spoiler anzeigen
#include <GDIPlus.au3>
_GDIPlus_Startup()
$hIcon = _GDIPlus_ImageLoadFromFile(@ScriptDir & '\item11.ico')
$hGui = GUICreate('Test', 250, 200)
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGui)
$hBitmap = _GDIPlus_BitmapCreateFromGraphics(250, 200, $hGraphic)
$hBackbuffer = _GDIPlus_ImageGetGraphicsContext($hBitmap)
GUISetState()
_GDIPlus_GraphicsDrawImageRect($hBackbuffer, $hIcon, 50, 50, 128, 128)
_GDIPlus_GraphicsDrawImage($hGraphic, $hBitmap, 0, 0)
Do
Until GUIGetMsg() = -3
_GDIPlus_ImageDispose($hIcon)
_GDIPlus_GraphicsDispose($hBackbuffer)
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown()
Wenn ich das unter Windows7 ausführe, dann erhalte ich das hier (gewünscht):
autoit.de/wcf/attachment/11339/
Unter WindowsXP hingegen bekomme ich das zu sehen (unerwünscht):
autoit.de/wcf/attachment/11340/
Sieht für mich wie eine fehlerhafte Transparenz aus.
Frage ist nun: Gibt es eine Möglichkeit, dass das auch unter WindowsXP richtig aussieht?