curverPoints hata veriyor. pointleri daha farklı nasıl ekleyebilirim?
Kod:
class Kare:Sekil
{
public int width;
public int height;
public Point point1;
public Point point2;
public Point point3;
public Point[] curvePoints;
public override **** BitisAta(int bx, int by)
{
width = bx - X;
height = by - Y;
point1 = new Point(30, 40);
point2 = new Point(15, 50);
point3 = new Point(12, 50);
curvePoints[0] = point1;
curvePoints[1] = point2;
curvePoints[2] = point3;
}
public override **** Ciz(Graphics cizimAraci)
{
//cizimAraci.FillRectangle(Brushes.Red,X,Y,width,height);
cizimAraci.DrawPolygon(Pens.Red, curvePoints);
}