如何为480 x 320屏幕平铺30000 x 6000图像? [英] How to tile a 30000 x 6000 image for a 480 x 320 screen?

查看:127
本文介绍了如何为480 x 320屏幕平铺30000 x 6000图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(这与另一个问题有关关于在iPhone上的实现)

(this is related to another question about implementation on iPhone)

我有一个大图像,大小约为30000(宽)x 6000(高)像素。你可能会认为它就像一张大地图。我想我需要把它裁剪成更小的瓷砖。问题:

I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:


  • 什么是磁贴策略?

要求:


  • 整个图像(虽然裁剪)可以通过滑动向上/向下/向左/向右滚动

  • 放大(最多像素到像素)输出(按屏幕调整到高度)延迟加载瓷砖的2指操作

  • 内存效率

谢谢!

推荐答案

查看Apple的第3部分 ScrollViewSuite 示例代码,以获取如何执行此操作的示例。

Check out part 3 of Apple's ScrollViewSuite sample code for an example of how to do this.

这篇关于如何为480 x 320屏幕平铺30000 x 6000图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆