Crear un dibujo que contenga dos círculos utilizando la clase Graphics en PowerShell
# Crear un dibujo que contenga dos círculos
$pen = [Drawing.Pen]::new("red",5)
$form = [System.Windows.Forms.Form]@{
Text = 'Mi formulario'
Width = 500
Height = 550
}
$brush = [System.Drawing.SolidBrush]::new("black")
$form.add_paint({
$form.createGraphics().FillEllipse($brush,[System.Drawing.RectangleF]::new(60,35, 100,100))
$form.createGraphics().FillEllipse($brush,[System.Drawing.RectangleF]::new(160,35, 100,100))
})
$form.ShowDialog()
