Cutting The Image In Jigsaw Shapes In Android
I want to know how to cut an image in jigsaw form in android at run time. What i actually want is user can enter any image and then made puzzle of it. Any API or method for doing t
Solution 1:
You can use this method in Bitmap to cut it into a new BitMap of specified width and height pixels starting from specified pixel location of x and y
publicstatic Bitmap createBitmap(Bitmap source,
int x,
int y, int width, int height)
Solution 2:
Assuming your puzzle piece is square, you can use createBitmap() function.
Returns an immutable bitmap from the specified subset of the source bitmap. The new bitmap may be the same object as source, or a copy may have been made. It is initialized with the same density as the original bitmap.
Post a Comment for "Cutting The Image In Jigsaw Shapes In Android"