Crop image into circle and add border

后端 未结 1 470
野性不改
野性不改 2021-01-07 10:41

I\'m trying to crop a circle image and adding a border around it. Below is my code to crop a circle image.



        
1条回答
  •  别那么骄傲
    2021-01-07 10:45

    If You managed to do the cropping, then it should be easy.

    Just create a black circle and put a 2px smaller circle on it and then fil it with the image (that's what You do, isnt'it? ;) )

    EDIT:

    To be more precise:

    Now You create a circle filled with the image. I suggest to:

    1. create a circle and fill it with black
    2. create another circle on it and fill with Your image as You do now

    0 讨论(0)
提交回复
热议问题