Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Submit your requests and polls about new features
  • Page:
  • 1

TOPIC:

Page snapshots 9 years 4 months ago #8025

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 4 months ago #8027

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
did you tried both jpg and png format?

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

Page snapshots 9 years 4 months ago #8032

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 4 months ago #8036

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 9 years 4 months ago #8039

  • kovel
  • kovel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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