Worksheet: Drawing Shapes
Worksheet: Drawing Shapes
Explore the details of the following methods and make practice to know how they work.
Drawing Shapes
Method Description
DrawArc() Draws an arc that represents a portion of an
ellipse
DrawBezier() Draws a Bzier curve defined by four points
DrawBeziers() Draws a series of Bzier curves
DrawClosedCurve() Draws a closed curve defined by an array of
points
DrawCurve() Draws a curve defined by an array of points
DrawEllipse() Draws an ellipse defined by a bounding
rectangle specified by a pair of coordinates, a
height, and a width
DrawIcon() Draws the image represented by the specified
Icon object at the given coordinates
DrawImage() Draws an Image object at the specified
location, preserving its original size
DrawLine() Draws a line that connects the two points
DrawLines() Draws a series of line segments that connect an
array of points
DrawPath() Draws a GraphicsPath object
DrawPie() Draws a pie shape defined by an ellipse and
two radial lines
DrawPolygon() Draws a polygon defined by an array of points
DrawRectangle() Draws a rectangle specified by a point, a width,
and a height
DrawRectangles() Draws a series of rectangles
DrawString() Draws the given text string at the specified
location, with the specified Brush and Font
objects
Methods Description
FillRectangle() Fills the interior of a rectangle specified by a
point, a width, and a height
FillRectangles() Fills the interiors of a series of rectangles
FillRegion() Fills the interior of a Region object