我想知道如何在运行时削减的拼图形式的图像机器人。什么其实我想要的是用户可以输入任何图像和它再制成的难题。
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.
在Android的这样做的任何API或方法?
Any API or method for doing this in android ?
在此先感谢。
推荐答案您可以使用在处理这方法以切成指定宽度和高度像素的新位图从x和y
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
public static Bitmap createBitmap (Bitmap source, int x, int y, int width, int height)