iphone平铺图像 [英] iphone tiling an image
问题描述
我有一个1280 x 1664的图像,我想使用Apple给我们的ScrollViewSuite示例,但我需要将此图像剪切到多个缩放级别。
<那么,是否有人知道如何在多个缩放级别平铺图像。必须有一种简单的方法将图像耕种到256x256而不用手工通过photoshop切割?
很棒的查找。我根据您的发现进行了一些研究,并设法将row和col添加到输出文件名中。我还将图像调整为我希望图像的百分比。所以我现在可以从1张大图片中完成所有操作。
转换bigimage.png -resize 25%-crop 256x256 -set filename :tile%[fx:page.x / 256 + 1] _%[fx:page.y / 256 + 1]+ repage + adjointile_25 _%[filename:tile] .png
非常感谢帮助我,它为我节省了很多时间。希望我帮你了?
I have an image which is 1280 x 1664 and I want to use the ScrollViewSuite example that Apple gives us but I need to cut this image up to multiple zoom levels.
So, does anybody know how I can tile an image at multiple zoom levels. There must be an easy way to tilling an image to 256x256 without cutting it by hand via photoshop?
great find. I did a bit of researching from what you found and I've managed to add the row and col to the output filename. I've also resized the image to what percentage I want the image to be. So I can now do it all from 1 large image.
convert bigimage.png -resize 25% -crop 256x256 -set filename:tile "%[fx:page.x/256+1]_%[fx:page.y/256+1]" +repage +adjoin "tile_25_%[filename:tile].png"
Thanks a lot for helping me out, its saved me a lot of time. Hopefully I've helped you out?
这篇关于iphone平铺图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!