how to create a path using coregraphics?

前端 未结 3 1683
醉酒成梦
醉酒成梦 2021-02-11 08:48

i want to create a path.something like i touch the screen and draw line in touchmove event.when line intersect from starting point.fill that path using any colour.

3条回答
  •  野性不改
    2021-02-11 08:50

    Core Graphics should definitely not be using [self setNeedsDisplay] every time the image changes, which is probably why your code is so slow on the device. Drawing is slow. If you use OpenGL ES to draw the lines, it will be much quicker, at the expense of being more difficult to understand.

提交回复
热议问题