Click or drag to resize

Canvas Methods

The Canvas type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCalculateTextSize(String, Font)
Calculates the pixel size required to draw text using a specific font.
Public methodStatic memberCalculateTextSize(String, Font, TextFormat)
Calculates the pixel size required to draw text using a specific font and text format.
Public methodStatic memberCalculateTextSize(String, Size, Font, TextFormat)
Calculates the size of bound text without actually drawing it.
Public methodDrawEllipse(Rectangle, AtalaPen)
Draws an ellipse onto this canvas specifying the border pen.
Public methodDrawEllipse(Rectangle, Fill)
Draws an ellipse onto this canvas specifying the Fill.
Public methodDrawEllipse(Rectangle, AtalaPen, Fill)
Draws an ellipse onto this canvas specifying the border pen and Fill.
Public methodDrawLine
Draw a line onto this canvas.
Public methodDrawLines
Draws multiple connected lines onto this canvas.
Public methodDrawPolygon(Point, AtalaPen)
Draw a series of connected lines that form a closed polygon specifying the border pen.
Public methodDrawPolygon(Point, Fill)
Draw a series of connected lines that form a closed polygon specifying the inside fill.
Public methodDrawPolygon(Point, AtalaPen, Fill)
Draw a series of connected lines that form a closed polygon specifying the border pen and inside fill.
Public methodDrawRectangle(Rectangle, AtalaPen)
Draws a rectangle onto this canvas specifying the border pen.
Public methodDrawRectangle(Rectangle, Fill)
Draws a rectangle onto this canvas specifying the fill.
Public methodDrawRectangle(Rectangle, AtalaPen, Fill)
Draws a rectangle onto this canvas specifying the border pen and fill.
Public methodDrawRectangle(Rectangle, AtalaPen, Size)
Draws a rounded rectangle onto this canvas specifying the border pen.
Public methodDrawRectangle(Rectangle, Fill, Size)
Draws a rounded rectangle onto this canvas specifying the fill.
Public methodDrawRectangle(Rectangle, AtalaPen, Fill, Size)
Draws a rounded rectangle onto this canvas specifying the border pen and fill.
Public methodDrawRegion
Draws a filled region.
Public methodCode exampleDrawText(String, Point, Font, Fill)
Draw a single line text string onto this canvas specifying the upper left corner position.
Public methodDrawText(String, Rectangle, Font, Fill)
Draw multiline text onto this canvas specifying the rectangular bound area of the string.
Public methodDrawText(String, Point, Font, Fill, SolidFill)
Draw a single line text string onto this canvas specifying the upper left corner position and a solid background color.
Public methodDrawText(String, Point, Font, Fill, TextFormat)
Draw a single line text string onto this canvas specifying the upper left corner position and text formatting.
Public methodDrawText(String, Rectangle, Font, Fill, TextFormat)
Draw multiline text onto this canvas specifying the rectangular bound area of the string and text formatting.
Public methodDrawText(String, Point, Font, Fill, SolidFill, TextFormat)
Draw a single line text string onto this canvas specifying the upper left corner position and a solid background color.
Public methodDrawText(String, Rectangle, Font, Fill, SolidFill, TextFormat)
Draw a single line text string onto this canvas specifying the upper left corner position and a solid background color.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also