Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Submit your requests and polls about new features

Page snapshots

More
IP: 192.168.0.71 11 years 3 months ago - 11 years 3 months ago #8025 by kovel
Page snapshots was created by kovel
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: 11 years 3 months ago by .
More
IP: 192.168.0.71 11 years 3 months ago #8027 by radaee
Replied by radaee on topic Page snapshots
did you tried both jpg and png format?
More
IP: 192.168.0.71 11 years 3 months ago #8032 by kovel
Replied by kovel on topic Page snapshots
yep, for jpeg it much faster. is it during marshalling from native heap to dalvik?
More
IP: 192.168.0.71 11 years 3 months ago #8036 by radaee
Replied by radaee on topic Page snapshots
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.
More
IP: 192.168.0.71 11 years 3 months ago #8039 by kovel
Replied by kovel on topic Page snapshots
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
Time to create page: 0.420 seconds
Powered by Kunena Forum