我目前正在使用此方法为我的用户舍入图像的边缘:
public void doNewButtonClick(View v){
// you can handle different views based on the
//'id' you get v.getId() and handle different functionalities for each button.
}
四舍五入完美无缺,我很满意。但是,我还想在边缘的约束下在图像周围绘制边框。我在网上阅读的大部分内容都展示了如何在图像上绘制边框(而不是我正在做的圆形边框)。有没有办法做到这一点?我已阅读以下内容:
how to round_corner a logo without white background(transparent?) on it using pil?
Python Imaging Library (PIL) Drawing--Rounded rectangle with gradient