void Draw(Graphics g, int x, int y, int w, int h)
{
g.DrawRectangle(Pens.Black, x, y, w, h);
g.DrawEllipse(Pens.Black, x, y + h, w, h);
g.DrawRectangle(Pens.Black, x, y + 2 * h, w, h);
g.DrawRectangle(Pens.Black, x + w, y + h, w, h);
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
void Draw(Graphics g, int x, int y, int w, int h)
{
g.DrawRectangle(Pens.Black, x, y, w, h);
g.DrawEllipse(Pens.Black, x, y + h, w, h);
g.DrawRectangle(Pens.Black, x, y + 2 * h, w, h);
g.DrawRectangle(Pens.Black, x + w, y + h, w, h);
}