Can I convert an image into a grid of dots?

后端 未结 3 1778
闹比i
闹比i 2021-01-25 09:22

Just a quick question.

Can this:

\"Polka

be done with image processing on an iOS device

3条回答
  •  时光取名叫无心
    2021-01-25 10:01

    You should be able to do this just by looping and drawing the circles in black and white, and then using that image as a mask for your image.

    Here's the first link I found on Google about CoreGraphics masking, which you can probably adapt for your needs: http://cocoawithlove.com/2009/09/creating-alpha-masks-from-text-on.html

    I'd imagine drawing lots of circles is something you can figure out with some Googling of your own.

提交回复
热议问题