D
Neue Frage:
wie kann ich in einem Pfad eine Kurve zeichnen? Ich will ein Rechteck mit abgerundeten Ecken haben.
Graphics graphics(m_pImage);
graphics.SetSmoothingMode(SmoothingModeAntiAlias);
SolidBrush brush(Color(210,255,255,255));
Point points[] = {Point(40,50), Point(60, 30), Point(400, 30), Point(400, 300),
Point(40, 300), Point(40,50)};
byte types[] = {PathPointTypeStart, PathPointTypeLine, PathPointTypeLine, PathPointTypeLine,
PathPointTypeLine, PathPointTypeLine};
GraphicsPath* path = new GraphicsPath(points, types, 6, FillModeAlternate);
graphics.FillPath(&brush, path);
wenn ich statt PathPointTypeLine PathPointTypeBezier verwende, wird der Pfad gar nicht gezeichnet bzw. gefüllt