- Posts: 10
- Thank you received: 0
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
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
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 .
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?
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?
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.
we shall not add new interfaces, to encode images, this makes library fat.
at least 100k bytes growth for each CPU arch library.
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
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