0

I am looking to convert rectangular bitmap to one side rounded rectangle. For reference, you can see the door of the garage in the below pic

enter image description here

I want to transform a rectangular bitmap into this kind of shape. I know this is not too informative but I am new to this area and don't know what details to provide except this.

Raj Suvariya
  • 1,592
  • 3
  • 14
  • 36

1 Answers1

0

I think this could help you: click

You have to create a new canvas with your bitmap, then you can shape it.

Bitmap bitmap = Bitmap.createBitmap(Picture);
Canvas canvas = new Canvas(bitmap);

//shape your canvas as in the link described

//e.g. set the bitmap to a ImageView
myImageView.setImageBitmap(bitmap);
Felix
  • 284
  • 2
  • 12