W zdarzeniu Paint formy mam kod:
e->Graphics->Clear(Color::Gray);
int szer = this->Size.Width;
int wys = this->Size.Height;
Pen ^pen = gcnew Pen(Color::Black);
PointF punkt1 = PointF(0, 0);
PointF punkt2 = PointF(szer*(10/100), wys*(50/100));
PointF punkt3 = PointF(szer, wys);
array<PointF>^punkty = {punkt1, punkt2, punkt3};
e->Graphics->DrawCurve(pen, punkty);
Jednak przy zmianie wielkości okna linia nie jest rysowana dobrze, tylko po kawałku, z odstępami. Jak to naprawić?