tags:

views:

45

answers:

1

Hi Friends, 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
alt text

Figure1
alt text

A: 

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.

methodin