Working with JPEG images

by nickthecook » Tue, 06 Jan 2009 01:20:15 GMT

Sponsored Links
 Hello all,

I'm looking for a way to work with JPEG images read from a file in
Android. Specifically, I would like to scale them, and be able to get
their height and width.

I can get an InputStream to a JPEG file on the SD card, and I can work
with the raw bytes, but I'd like something a little more high-level.

Bitmap seems to be able to encode JPEGs, but not decode them.



Working with JPEG images

by Mike Reed » Tue, 06 Jan 2009 01:36:06 GMT



Sponsored Links

Other Threads

1. How to set width and height of a View in DP through code not in XML ?

search 'Converting dp units to pixel units' on above page.


2. Notepad Sample - adding more columns to listview

I've done the notepad tutorial on Google's Android site, but I would
like to know how to add more fields to the list, in columns. At the
moment I can add the columns no problem, but they're not aligned like
you would a normal table on the layout:

john smith
heinrich cilliers
will peck

I would like it aligned as in a html table.

Any pointers?


3. How to set width and height of a View in DP through code not in XML ?

4. Control rotation of a 3D object using the touchscreen

5. Views with the same dip width number have different widths in appearance on device

6. MediaPlayer error( 1,-2147483648)

7. Music / Soundtrack composer available for interesting projects - perhaps even free.