Joined February 2013
·

Mostafa Gazar

Alexandria, Egypt
·
·

You can use an image as a mask by:
1- Create new class BitmapMaskedImageView extends BaseImageView and load the image mask you want in getBitmap(int width, int height), https://github.com/MostafaGazar/CustomShapeImageView
2- Read the image file in getMask line: 175 in the attached gist, https://gist.github.com/MostafaGazar/ee345987fa6c8924d61b

The edges would look rougher most probably so svg or simple canvas draw methods might be a better option.

You can use Inkscape which is an opensource software for desktops to create/edit svg files.

Achievements
306 Karma
29,655 Total ProTip Views