Android如何创建平铺壁纸图片? [英] Android how to create tiling wallpaper image?
问题描述
我有一个图案的图像,我希望通过耕种来创建一个更大的图像,以便用户可以将其应用为壁纸。我该怎么做?
I have an image of a pattern and I want to create a larger image from this by tilling it so that the user can apply it as a wallpaper. How would I go about doing this?
图案拼贴可以有不同的尺寸。
The pattern tile can be of varying dimensions.
我也想要要用调色板做这个,所以我有5种不同的颜色,我想制作一个由这些颜色的粗条纹组成的壁纸......不太确定我应该怎么做。
I also want to be doing this with a color palette so I have 5 different colours and I want to make a wallpaper that consisted of thick stripes of these colors...not too sure how I should be doing this.
谢谢!
推荐答案
Snake示例有一个如何执行此操作的示例
< a href =http://developer.android.com/resources/samples/Snake/src/com/example/android/snake/TileView.html =nofollow noreferrer> http://developer.android.com /resources/samples/Snake/src/com/example/android/snake/TileView.html
The Snake sample has an example of how to do this http://developer.android.com/resources/samples/Snake/src/com/example/android/snake/TileView.html
这篇关于Android如何创建平铺壁纸图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!