Page snapshots - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Submit your requests and polls about new features
  • Page:
  • 1

TOPIC: Page snapshots

Page snapshots 3 years 11 months ago #8025

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

Last edit: by .

Page snapshots 3 years 11 months ago #8027

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
did you tried both jpg and png format?

Please Log in or Create an account to join the conversation.

Page snapshots 3 years 11 months ago #8032

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
yep, for jpeg it much faster. is it during marshalling from native heap to dalvik?

Please Log in or Create an account to join the conversation.

Page snapshots 3 years 11 months ago #8036

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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.

Please Log in or Create an account to join the conversation.

Page snapshots 3 years 11 months ago #8039

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum