c # Radialgradientenpinseleffekt in GDI und Winforms

Ich habe eine C # Windows-Anwendung erstellt und 75% des Codes geschrieben. Das Programm ermöglicht es dem Benutzer, ein Flussdiagramm zu erstellen und die Flussdiagrammformen entsprechend ihrem Status zu schattieren. Ich wollte, dass sie zu 3D-Buttons wie @ werd von der Website Webdesign.org

Anstatt für jede Schaltfläche eine PNG-Datei zu erstellen, wollte ich sie in C # mit Pinseln oder einer anderen Methode erstellen, z. B .:

// Create solid brush.
SolidBrush blueBrush = new SolidBrush(Color.Blue);
// Create points that define polygon.
PointF point1 = new PointF(50.0F, 50.0F);
PointF point2 = new PointF(100.0F, 25.0F);
PointF point3 = new PointF(200.0F, 5.0F);
PointF point4 = new PointF(250.0F, 50.0F);
PointF point5 = new PointF(300.0F, 100.0F);
PointF point6 = new PointF(350.0F, 200.0F);
PointF point7 = new PointF(250.0F, 250.0F);
PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};
// Define fill mode.
FillMode newFillMode = FillMode.Winding;
// Fill polygon to screen.
e.Graphics.FillPolygon(blueBrush, curvePoints, newFillMode);

Ich weiß, dass WPF radiale Verläufe hat, aber kann ich in CGI etwas Ähnliches tun?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage