Kostya
I did some research and found a solution to my issue based on your
suggestion which might help someone else out as well.
I found this link which has code to read/write out a .BMP file like you
suggested (WITHOUT using the javax.imageio because Android doesn't support
it).
http://research.
Kostya
Your a saint. Thank you for the fast *response*.
I like your suggestion of writing it out in .BMP uncompressed format.
Then I can just open it as a BMP and convert it to PNG (if need be) outside
of android.
That Wikipedia link looks very helpful.
I'll give that a try.
Thank you very muc
PS - there is also this library from Sun / Oracle:
http://java.sun.com/products/java-media/jai/iio.html
which can save to PNG in one line of code:
http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html#save
-- Kostya
05.01.2011 20:02, chris harper пишет:
This a Bitmap question
Chris,
Let's clear some terminology first. You don't have "Android bitmaps" -
you're writing data out in your own, uncompressed, format.
Reading this format should be pretty easy, just reverse the code below.
For compressing to PNG outside Android, try this:
http://code.google.com/p/javapng/
This a Bitmap question.
Given an Android Bitmap which has been written to file I want to read the
Android BitMap from the file and convert it to a PNG OUTSIDE of Android (via
a regular java program).
Here is how I am writing out the Bitmap to a file:
screenShot - i
5 matches
Mail list logo