楊健 wrote: > How can i save a Bitmap instance to a *.bmp file?Anyone knows?
Option #1: Don't do it. So, for example, if this is a question of uploading data to some server, let the server do the conversion from PNG. Option #2: See if there is a way, through the implementation of Bitmap in the open source code, for C/C++ code to get its hands on the raw byte array that is the image. Then, use the newly-released NDK to write yourself a utility method somewhere that works like compress(), but writes out BMP files, perhaps using some existing BMP-encoding C code you find somewhere. > Is it strange that we can only save a bitmap instance to a png or jpg > file? No. BMP files are huge (compared to a PNG edition of the same image), and huge is not something you typically want on a mobile phone. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

