开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜