public void DrawPicture(Bitmap bmp, Graphics g) { if (IsEllipse.Checked) { startAngleNumeric.Visible = false; sweepAngleNumeric.Visible = false; DrawAlgoritms.BresenhamEllipse(bmp, Color.Yellow, Width / 2, Height / 2, cur.X, cur.Y, true); DrawAlgoritms.BresenhamEllipse(bmp, Color.Black, Width / 2, Height / 2, cur.X, cur.Y, false); } if (IsArc.Checked) { startAngleNumeric.Visible = true; sweepAngleNumeric.Visible = true; DrawAlgoritms.BresenhamArc(bmp, Color.Black, Width / 2, Height / 2, cur.X, cur.Y, (int)startAngleNumeric.Value, (int)sweepAngleNumeric.Value); } if (IsPie.Checked) { startAngleNumeric.Visible = true; sweepAngleNumeric.Visible = true; DrawAlgoritms.BresenhamPie(bmp, Color.Yellow, Width / 2, Height / 2, cur.X, cur.Y, (int)startAngleNumeric.Value, (int)sweepAngleNumeric.Value, true); DrawAlgoritms.BresenhamPie(bmp, Color.Black, Width / 2, Height / 2, cur.X, cur.Y, (int)startAngleNumeric.Value, (int)sweepAngleNumeric.Value, false); } }
public void FillOrSetEllpsePixels(Bitmap bmp, Color color, int x, int y, int xc, int yc) { DrawAlgoritms.FillPixels(bmp, color, x, y, xc, yc); }
public void FillOrSetPiePixels(Bitmap bmp, Color color, int x, int y, int xc, int yc, double stAn, double destAn) { DrawAlgoritms.FillPiePixels(bmp, color, x, y, xc, yc, stAn, destAn); }