How to tile a 30000 x 6000 image for a 480 x 320 screen?

Posted by Horace Ho on Stack Overflow See other posts from Stack Overflow or by Horace Ho
Published on 2010-04-28T01:46:23Z Indexed on 2010/04/28 1:53 UTC
Read the original article Hit count: 287

Filed under:
|

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

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:

  • what is the tile strategy?

Requirements:

  • whole image (though cropped) can be scrolled up/down/left/right by swipes
  • zoom in (up to pixel-to-pixel) out (down to screen-fit-by-height) by the 2-finger operation
  • memory efficiency by lazy loading tiles

Thanks!

© Stack Overflow or respective owner

Related posts about image-manipulation

Related posts about tiles