Я рисую треугольник со следующим кодом
int x = x coordinate for center;
int ax = x coordinate for left;
int bx = x coordinate for right;
int top = y coordinate for top;
int bottom = y coordinate for bottom;
// (x, top)
//(ax, bottom) (bx, bottom)
GraphicsPath path = new GraphicsPath();
// _
path.AddLine(ax, bottom, bx, bottom);
// /
path.AddLine(ax, bottom, x, top);
// \
path.AddLine(bx, bottom, x, top);
// order of drawing is _ / \ (bottom line, left side, right side)
Когда я вызываю DrawPath, он всегда рисует мои линии, независимо от порядка. Но когда я вызываю FillPath, он ничего не делает. Только когда мой ордер / _ \ или \ _ / действительно заполняет мой треугольник. Почему это?