![]() The following code sets the Color and DashStyle properties to create an ellipse resembling the one shown in Figure 26-4:įigure 26-4: Drawing an ellipse using the Color and DashStyle properties private void Form1 Load(object sender, System.EventArgs e) By calling methods in the Graphics class, you can dictate the type of shape you want to output. By setting various properties on an instance of a Pen, you can alter the outcome of the pen display. The namespace that contains the features used by the Pen and Brush classes is the 2D namespace, so be sure to add this with the using statement in your class files. The Pen class enables you to draw lines and curves on a graphics surface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |