C# Class MonoMobile.Dialog.GraphicsUtil

Exibir arquivo Open project: moljac/MonoMobile.Dialog Class Usage Examples

Public Methods

Method Description
FillRoundedRect ( CGContext ctx, RectangleF rect, float radius ) : void
MakeRoundedPath ( float size, float radius ) : CGPath
MakeRoundedRectPath ( RectangleF rect, float radius ) : CGPath

Creates a path for a rectangle with rounded corners

Method Details

FillRoundedRect() public static method

public static FillRoundedRect ( CGContext ctx, RectangleF rect, float radius ) : void
ctx CGContext
rect System.Drawing.RectangleF
radius float
return void

MakeRoundedPath() public static method

public static MakeRoundedPath ( float size, float radius ) : CGPath
size float
radius float
return CGPath

MakeRoundedRectPath() public static method

Creates a path for a rectangle with rounded corners
public static MakeRoundedRectPath ( RectangleF rect, float radius ) : CGPath
rect System.Drawing.RectangleF /// The rectangle bounds ///
radius float /// The size of the rounded corners ///
return CGPath