Zeichnet und füllt ein Polygon
#Include <GDIPlus.au3>
_GDIPlus_GraphicsFillPolygon($hGraphics, $aPoints[, $hBrush = 0])
Parameter
| $hGraphics | Handle zu einem Grafik-Objekt |
| $aPoints | Array welches die Eckpunkte des Polygons festlegt: [0][0] - Anzahl von Eckpunkten [1][0] - Eckpunkt 1 X-Position [1][1] - Eckpunkt 1 Y-Position [2][0] - Eckpunkt 2 X-Position [2][1] - Eckpunkt 2 Y-Position [n][0] - Eckpunkt n X-Position [n][1] - Eckpunkt n Y-Position |
| $hBrush | [optional] Handle zu einem Füllmuster-Objekt der verwendet wird um das Objekt zu füllen. |
Rückgabewert
| Erfolg: | True |
| Fehler: | False |
Bemerkungen
Keine.
Verwandte Funktionen
Siehe auch
Suche in der MSDN Bibliothek nach GdipFillPolygonI
Beispiel
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GDIPlus.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $hWnd, $hGraphic, $aPoints[4][2]
; Erstellt eine GUI
$hGUI = GUICreate("GDI+", 400, 300)
GUISetState()
; Zeichne ein Polygon
_GDIPlus_Startup()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
$aPoints[0][0] = 3
$aPoints[1][0] = 150
$aPoints[1][1] = 150
$aPoints[2][0] = 200
$aPoints[2][1] = 100
$aPoints[3][0] = 250
$aPoints[3][1] = 150
MsgBox(4096, "Information", "Fülle Polygon")
_GDIPlus_GraphicsFillPolygon($hGraphic, $aPoints)
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
; Ressourcen freigeben
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown()
EndFunc ;==>_Main