如何用UIBezierPath绘制一个倾斜的椭圆形

时间:2016-04-15 11:33:26

标签: ios objective-c swift

我想用UIBezierPath绘制一个倾斜的椭圆形。只有一种方法UIBezierPath.init(ovalInRect: rect)可以绘制一个没有斜面的椭圆形。我可以做些什么来绘制它?感谢

1 个答案:

答案 0 :(得分:4)

以下是旋转椭圆的示例:

   #prompts user for input through cmd for path of log file
    $log = Read-Host -Prompt 'Input path of log, if log does not, create one. Include file name and extension' 

    #prompts user for input through cmd, saves path, then recursively searches
    $source = Read-Host -Prompt 'Input source path'  
    $source = gci $source -recurse

    #prompts user for input through cmd, saves path, then recursively searches
    $compare = Read-Host -Prompt 'Input the path of directory to compare' 
    $compare = gci $compare -recurse

    #compares the $source to the $compare and outputs to log file 

    Compare-Object -ReferenceObject $source -DifferenceObject $compare -PassThru | Out-File $log -width 120

此处它正在Playground中运行:

enter image description here