0

I want to implement an application like "The star Epaper" available on Android and Apple Markets. This app is pretty amazing: it uses an small images but if u pinch this image, the quality of texts never change. It means by zoom in or zoom out the quality of image is still same. I went to files of app and found that there is a jpg image ( i.e. 183 KB) and each image has another file "22 KB" with no-extension. I used openwith and found that this file is also an image. Therefore, This app is using both of these images ( maybe one of the is vector) to replace the good quality for text file whenever pinch event fired.

What is this technique ? and how to implement it?

Ehsan
  • 517
  • 1
  • 7
  • 32

1 Answers1

0

Correct, you need a file format that stores text as vector graphics. For example .pdf or .svg. You can display such files using WebView on Android or UIWebView on iOS.

If you want more control, you can also implement your own view with zoom behavior. At each zoom level, you scale the text and render it again using the operating system's drawing API. There won't be any jaggies.

If you don't want to use web views, and don't want to do everything yourself either, look around SO: .svg libraries have been covered for example

Community
  • 1
  • 1
umlum
  • 1,107
  • 6
  • 11
  • Thanks a lot for your complete reply, I didnt know about SVG before and i know now. I have another question: how "Star epaper" app work? they dont have XML file but they have another file with out extension for each image. is it still SVG? – Ehsan Sep 11 '13 at 16:15
  • Since their app is not open source, how can we know for sure? We can not find out how exactly an app works just by looking at the files that ship with it. The app you mentioned _most likely_ downloads new magazine issues as .pdf from a server and displays it like I described. – umlum Sep 12 '13 at 09:23