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

(this is due to another implementation issue on the iPhone)

I have a large image about 30000 (w) x 6000 (h) pixels in size. You can consider it a big card. I guess I need to assemble it into smaller tiles. Questions:

  • What is the tile strategy?

Requirements:

  • the whole image (although cropped) can be scrolled up / down / left / right using swipes
  • increase (from pixel to pixel) (up to the screen in height) using the two-finger operation.
  • memory efficiency with lazy loading plates

Thank!

+2
source share
2 answers

3 Apple ScrollViewSuite , .

+3

, MIP mapping . , 1/2, 1/4, 1/8 / . ( 1/3 ).

, , . , .

+2

Source: https://habr.com/ru/post/1743102/


All Articles