C# Class Plasmoid.Extensions.GraphicsExtension

Datei anzeigen Open project: mono/sysdrawing-coregraphics

Public Methods

Method Description
DrawRoundedRectangle ( this graphics, Pen pen, float x, float y, float width, float height, float radius ) : void

Draws a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.

DrawRoundedRectangle ( this graphics, Pen pen, int x, int y, int width, int height, int radius ) : void

Draws a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.

FillRoundedRectangle ( this graphics, Brush brush, float x, float y, float width, float height, float radius ) : void

Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.

FillRoundedRectangle ( this graphics, Brush brush, int x, int y, int width, int height, int radius ) : void

Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.

Private Methods

Method Description
GenerateCapsule ( this graphics, RectangleF baseRect ) : GraphicsPath
GenerateRoundedRectangle ( this graphics, RectangleF rectangle, float radius ) : GraphicsPath

Method Details

DrawRoundedRectangle() public static method

Draws a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.
public static DrawRoundedRectangle ( this graphics, Pen pen, float x, float y, float width, float height, float radius ) : void
graphics this
pen System.Drawing.Pen
x float The x-coordinate of the upper-left corner of the rectangle to draw.
y float The y-coordinate of the upper-left corner of the rectangle to draw.
width float Width of the rectangle to draw.
height float Height of the rectangle to draw.
radius float The radius of the arc used for the rounded edges.
return void

DrawRoundedRectangle() public static method

Draws a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.
public static DrawRoundedRectangle ( this graphics, Pen pen, int x, int y, int width, int height, int radius ) : void
graphics this
pen System.Drawing.Pen
x int The x-coordinate of the upper-left corner of the rectangle to draw.
y int The y-coordinate of the upper-left corner of the rectangle to draw.
width int Width of the rectangle to draw.
height int Height of the rectangle to draw.
radius int The radius of the arc used for the rounded edges.
return void

FillRoundedRectangle() public static method

Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.
public static FillRoundedRectangle ( this graphics, Brush brush, float x, float y, float width, float height, float radius ) : void
graphics this
brush System.Drawing.Brush System.Drawing.Brush that determines the characteristics of the fill.
x float The x-coordinate of the upper-left corner of the rectangle to fill.
y float The y-coordinate of the upper-left corner of the rectangle to fill.
width float Width of the rectangle to fill.
height float Height of the rectangle to fill.
radius float The radius of the arc used for the rounded edges.
return void

FillRoundedRectangle() public static method

Fills the interior of a rounded rectangle specified by a pair of coordinates, a width, a height and the radius for the arcs that make the rounded edges.
public static FillRoundedRectangle ( this graphics, Brush brush, int x, int y, int width, int height, int radius ) : void
graphics this
brush System.Drawing.Brush System.Drawing.Brush that determines the characteristics of the fill.
x int The x-coordinate of the upper-left corner of the rectangle to fill.
y int The y-coordinate of the upper-left corner of the rectangle to fill.
width int Width of the rectangle to fill.
height int Height of the rectangle to fill.
radius int The radius of the arc used for the rounded edges.
return void