I know we can crop a bitmap in rectangular shape using:
Bitmap.createBitmap(source, x, y, width, height)
But I want to know to crop a bitmap in freehand mode or some polygon shape. Its best example can be seen in Jigsaw Puzzle game
I have spent a lot of time googling about this but found no help. Can anybody help me in this regard?