C# Class CrossUI.iOS.Dialog.Utilities.GraphicsUtil

显示文件 Open project: MvvmCross/MvvmCross Class Usage Examples

Public Methods

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

Creates a path for a rectangle with rounded corners

Method Details

FillRoundedRect() public static method

public static FillRoundedRect ( CGContext ctx, CGRect rect, float radius ) : void
ctx CGContext
rect CGRect
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 ( CGRect rect, float radius ) : CGPath
rect CGRect /// The rectangle bounds ///
radius float /// The size of the rounded corners ///
return CGPath