Author Topic: Redraw page after zooming?  (Read 838 times)

docstun

  • Newbie
  • *
  • Posts: 1
Redraw page after zooming?
« on: April 16, 2010, 11:43:14 am »
Hey!

is there a way to redraw the page after increasing/decreasing the zoom level? We are using rasterize="true" on swf pages to increase performance. But that means that after zooming, the quality of the image is not good at all. We need a way to redraw the page and "rasterize" again. Is there a possibility for that?

Cheers!

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Redraw page after zooming?
« Reply #1 on: April 16, 2010, 04:47:17 pm »
If you rasterize them anyway, I'd suggest generating images of different size and using them at certain
scalings. See http://megazine.mightypirates.de/wiki/index.php/Adaptive_Zoom

Just redrawing the images would not help by itself, because the size doesn't change in the local coordinate
system of the images. So I'd have to raster them into a rather big bitmap which I'd scale down again, which
would then be upscaled due to the zoom of the pages, which in the end would most likely result in not so
nice interpolation.
If you want to give it a try yourself, feel free to do so, though. You'd have to change the Img class for that,
and use the scale change events of the MegaZine instance.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

iksnew

  • Newbie
  • *
  • Posts: 1
Re: Redraw page after zooming?
« Reply #2 on: April 27, 2010, 07:29:50 am »
If you rasterize them anyway, I'd suggest generating images of different size and using them at certain
scalings. See http://megazine.mightypirates.de/wiki/index.php/Adaptive_Zoom
Adaptive Zoom would be perfect for me, if the transition from one zoom level to another would be smooth. In the current version (using 2.0.7a) you will see a scaled version of the loading progress bar before any transition. This even happens when the picture has been loaded before and could be fetched from the cache.

To see this effect, zoom to max level on the last page of the demo book:
http://vservu.de/mz3demo/index-demo-zoom-zd.html#/10

Are there any planned improvements on adaptive zooming?

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Redraw page after zooming?
« Reply #3 on: April 29, 2010, 12:42:00 pm »
Yeah, that's been on my todo list since I added the adaptive zoom ;)
Can't promise when I'll find the time to change that, though...
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.