How to draw line / arcs in CIImage?

I have a CIImage and am trying to draw lines by dragging the mouse along the path. Can I do it?

I am creating a mac application and I am new to Core Image.

+3
source share
1 answer

First you need to create a graphic context, and then extract the image from it. Here is the link that will answer your question. This is for the iPhone, but the Mac and iPhone are very similar.

How to create a UIImage from the current graphics context?

0
source

Source: https://habr.com/ru/post/1782278/


All Articles