切割的形象拼图形状,机器人 [英] 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.
在Android的这样做的任何API或方法?
Any API or method for doing this in android ?
在此先感谢。
推荐答案
您可以使用<一个href=\"http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap%28android.graphics.Bitmap,%20int,%20int,%20int,%20int%29\"相对=nofollow>在处理这方法以切成指定宽度和高度像素的新位图
从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)
这篇关于切割的形象拼图形状,机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文