Hallo!
Gibt es einen Weg um mit GDI+ (oder irgendwas anderem) alle transparenten Pixel eines .png-Bilds zu finden und aufzulisten?
Und vielleicht noch wichtig: Geschwindigkeit spielt keine Rolle.
Bei meinem bisherigen Code werden transparente Pixel als 0xFFFFFFFF ausgegeben..
Spoiler anzeigen
_GDIPlus_Startup()
Global $bmp = _GDIPlus_ImageLoadFromFile("BildMitTransparenz.png")
Global $width = _GDIPlus_ImageGetWidth($bmp)
Global $height = _GDIPlus_ImageGetHeight($bmp)
Local $lock = _GDIPlus_BitmapLockBits($bmp, 0, 0, $width, $height)
Local $stride = DllStructGetData($lock, "Stride")
Local $scan0 = DllStructGetData($lock, "Scan0")
For $r = 0 To $width-1
For $c = 0 To $height-1
$px = DllStructCreate("dword", $scan0 + ($r * $stride) + ($c * 4))
$col = DllStructGetData($px, 1)
ConsoleWrite("0x" & Hex($col) & @CRLF)
Next
Next
_GDIPlus_BitmapUnLockBits($bmp, $lock)
[/autoit] [autoit][/autoit] [autoit]_GDIPlus_ImageDispose($bmp)
_GDIPlus_Shutdown()
Danke schon mal und Gruß syne