Soon, we'll need rectangle as part of candle construction. Here is the simple way of how to draw rectangle.
Code under button1:
private void button1_Click(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics(); // invoke graphics
SolidBrush solidBrush = new SolidBrush(Color.Pink); // choose drawing tool in pink color
g.FillRectangle(solidBrush, 100, 100, 100, 200); // draw rectangle with top coordinates and dimensions
}
No comments:
Post a Comment