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
Figure1
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.
精彩评论