开发者

How to apply round rectuangular shape to the parsed image from android?

开发者 https://www.devze.com 2023-01-16 08:15 出处:网络
I\'m parsing the image from the url, i want to display the corner of parsed image as roundrect(similar to figure2) but i\'m not able to do that, can anyone guide me regarding on this, My code for pars

I'm parsing the image from the url, i want to display the corner of parsed image as roundrect(similar to figure2) but i'm not able to do that, can anyone guide me regarding on this, My code for parsing the image from url is

 img_value = new URL(VAL4[arg0]);
 Log.v("Image_Url1",img_value.toString(开发者_开发问答));
 try{
    mIcon11 = BitmapFactory.decodeStream(img_value.openConnection().getInputStream());
    img.setImageBitmap(mIcon11);
}catch(Exception e)
{
    Log.v(TAG,"error   "+e);
}

Figure 2

How to apply round rectuangular shape to the parsed image from android?

Figure1

How to apply round rectuangular shape to the parsed image from android?


Give this URL a try: Draw circular region over bitmap

In essence what you want to do is clip the original bitmap by applying a path to the canvas in which you draw.

0

精彩评论

暂无评论...
验证码 换一张
取 消