How to make gradient border of an image using java?

前端 未结 2 1493
太阳男子
太阳男子 2021-01-02 23:50

How can I make an image border as gradient. I googled a lot, but didn\'t find correct suggestion. Any one can help me...

2条回答
  •  爱一瞬间的悲伤
    2021-01-03 00:42

    Create a transparent image of the same size, draw the white border and blur it. Than copy it on top of the image that you want to have the gradient border on.

    Reference: http://www.jhlabs.com/ip/blurring.html

    Hope that helps!

提交回复
热议问题