Hi Com,
ich habe mit GDI+ viele Linien gezeichnet und will diese einzeln löschen. Geht das ?
hier ein Foto
autoit.de/wcf/attachment/7451/
und mein Skript
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GDIPlus.au3>
$hGUI = GUICreate("", 625, 443, 237, 168)
GUISetState(@SW_SHOW)
_GDIPlus_Startup()
[/autoit] [autoit][/autoit] [autoit]Dim $Drawed[5]
$Drawed[0] = 70 ;x
$Drawed[1] = 90 ;y
$Drawed[2] = 200 ;Höhe
$Drawed[3] = 300 ;Breite
$Drawed[4] = _GDIPlus_GraphicsCreateFromHWND($hGUI)
_GDIPlus_GraphicsDrawRect($Drawed[4], $Drawed[0], $Drawed[1], $Drawed[3], $Drawed[2])
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]For $x = 0 to 300
;~ $x += 1
$random = Random(50, 100, 1)
_DiagramDrawVaule($Drawed, $x, $random)
Next
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
EndSwitch
WEnd
Func _DiagramDrawVaule($aVaules, $nCount, $nPerc)
;~ $x = $aVaules[0]
;~ $y = $aVaules[1]
;~ $Hoehe = $aVaules[2]
;~ $Breite = $aVaules[3]
If $nCount < 1 Then Return False
If $nPerc < 0 Then Return False
Return _GDIPlus_GraphicsDrawLine($aVaules[4], _
$aVaules[0] + $nCount , _
$aVaules[1] + $aVaules[2], _
$aVaules[0] + $nCount, _
$aVaules[1] + $aVaules[2] - ($nPerc * 2))
EndFunc ;==>_DiagramDrawVaule
schon mal Danke vom vorraus