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.

Thanks!

--~--~---------~--~----~------------~-------~--~----~



Working with JPEG images

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


 BitmapFactory.decodeStream(...)




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Is it possible to do automatic installations of the Android SDK?

As of now the Android SDK uses a GUI to select and install SDK
components. This is all nice, but is it possible to install SDK
components without a GUI? Using the old way, I could just untar the
package into a folder and everything was done (after setting PATH).

I ask the question because I would like to make it possible to use the
Android SDK together with Hudsons automatic tool installation. Hudson
is a CI server that can build on distributed computers/nodes. To be
able to build an android application on all nodes I have today do this
on all nodes: logon on, download the SDK, install all SDK components
using a GUI and set up the PATHs. This is cumbersome if you would like
to add a bunch of nodes to a build farm.

Hudson has already automatic installation of any Java, Ant, Maven
version on any node, ie if a build requires any version of those tools
it will install it automatically and set it up properly. What is
really happening is that Hudson downloads the Ant tar.gz, unpacks it
to a folder under the Hudson installation and then uses it. This way
you can have several different versions of Java, Ant and Maven if that
is needed. This is what I would like to have with the Android SDK
also, but as of now it seems impossible?

So is it possible to do automatic installation without a GUI?

//Erik

2. dx --junit

Someone can help me with dx --junit? I don't know how to use it and
what does it ?
thanks

3. Android Developer needed

4. Analog Clock

5. adding new locales to android

6. Custom inputType

7. I need to compile only the fastboot.exe