Computer Science, asked by gssah1973, 10 months ago


A command to clear the graphic area.​

Answers

Answered by kirankarnati94900
0

Answer:

command to clear

Explanation:

Graphics.Clear(Color) Method

Definition

Namespace:System.DrawingAssemblies:System.Drawing.dll, System.Drawing.Common.dll

In this article

Definition

Examples

Remarks

Applies to

Clears the entire drawing surface and fills it with the specified background color.

C#Copy

public void Clear (System.Drawing.Color color);

Parameters

colorColor

Color structure that represents the background color of the drawing surface.

Examples

The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. The code clears the drawing surface of the Graphics and sets the background color to the system-defined teal color.

Similar questions