CoreGraphics FillPath And Stroke Path

后端 未结 2 413
别跟我提以往
别跟我提以往 2021-02-05 06:15

I need to draw an hexagon and fill it with a color build with an Image as pattern. I did:

CGContextSaveGState(context);
CGContextSetLineCap(context, kCGLineCapRo         


        
2条回答
  •  再見小時候
    2021-02-05 07:10

    Try

    CGContextDrawPath(context, kCGPathFillStroke);
    

    Instead of

    CGContextStrokePath(context);
    CGContextFillPath(context);
    

提交回复
热议问题