Put border around partially transparent Image being drawn on CGContext

前端 未结 2 604
囚心锁ツ
囚心锁ツ 2020-12-23 10:50

I have an image with a yellow vase in the foreground and transparent background:

\"enter

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 11:19

    I would try either setting the stroke color and line width before your call to CGContextDrawImage, or tweaking the shadow (opacity, blur, etc) so that it looks like a stroke around the image. Let me know if this works!

提交回复
热议问题