RadaeePDF.com :: Topic: Page snapshots (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Submit your requests and polls about new features

TOPIC: Page snapshots

Page snapshots 2 years 11 months ago #8025

  • kovel
  • kovel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Hi folks
For now I cannot save Bitmap in file any other way than compression using Bitmap.compress(...). But it too slow (takes about 600-700 ms). Could you provide function like Page.RenderToFile() which saves bitmap natively?
Thanks
Last Edit: 2 years 11 months ago by raviasija.
The administrator has disabled public write access.

Page snapshots 2 years 11 months ago #8027

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
did you tried both jpg and png format?
The administrator has disabled public write access.

Page snapshots 2 years 11 months ago #8032

  • kovel
  • kovel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
yep, for jpeg it much faster. is it during marshalling from native heap to dalvik?
The administrator has disabled public write access.

Page snapshots 2 years 11 months ago #8036

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
native library not use dalvik to decode images.
we shall not add new interfaces, to encode images, this makes library fat.
at least 100k bytes growth for each CPU arch library.
The administrator has disabled public write access.

Page snapshots 2 years 11 months ago #8039

  • kovel
  • kovel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
but maybe you could provide something like that:

Page.SaveToFile(java.lang.String filePath)

in this case you aren't need bind it to android bitmap or java.io streams
The administrator has disabled public write access.
Powered by Kunena Forum