Hey.
Ich Suche eine Möglichkeit ein Rect auf einem Bitmap schneller Tranzparent zu setzten als mit dieser Funktion, welche shadow gecodet hat :
[autoit]Func _MakeTransRect($bmp,$x,$y,$w,$h)
Local $s
Local $d=_GDIPlus_BitmapLockBits($bmp,$x,$y,$w,$h,$GDIP_ILMWRITE,$GDIP_PXF32ARGB)
Local $height=DllStructGetData($d,"Height")
Local $size=$w*4,$scan0=DllStructGetData($d,"Scan0"),$stride=DllStructGetData($d,"Stride")
For $xx=0 To $height-1
$s=DllStructCreate("byte["&$size&"]",$scan0+$xx*$stride)
For $xxx=1 To $size
DllStructSetData($s,1,0,$xxx)
Next
Next
_GDIPlus_BitmapUnlockBits($bmp,$d)
Return $bmp
EndFunc
mfg