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. how can I list my apps on the android marketplace?

Hi,

I know it might be a dumb question to ask -- but since despite
goggling around the net and these groups I couldn't find much, I'm
going to ask it anyway :)

Aside from the Android Marketplace announcement here
http://android-developers.blogspot.com/2008/08/android-market-user-driven-content.html

and the related blurb "Developers will be able to make their content
available on an open service hosted by Google that features a feedback
and rating system similar to YouTube. We chose the term "market"
rather than "store" because we feel that developers should have an
open and unobstructed environment to make their content available.
Similar to YouTube, content can debut in the marketplace after only
three simple steps: register as a merchant, upload and describe your
content and publish it."

didn't see much of anything else addressing the question in the
subject.

I do have a Google merchant account, but there is no category / option
over there allowing to specifically say "I'm listing an Android
Application".

I couldn't find specific info about how apps are going to be made
available through the marketplace / G1 appstore either. I'm assuming
via OTA, with .apk downloaded through HTTP. Is there also going to be
a desktop sync / desktop manager install tool sort of thing as well?

If anyone could shed some light or point me in the right direction I'd
much appreciate.

Thanks!

- Adriano

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

2. HttpClient thread safety?

Does anybody know if the version of HttpClient in the Android SDK is  
thread safe? The API documentation ( at 
http://code.google.com/android/reference/org/apache/http/client/HttpClient.html 
  ) just has the standard Apache "Thread safety of HTTP clients  
depends on the implementation and configuration of the specific  
client." disclaimer.

        -Allan
--
Allan Hsu <allan at counterpop dot net>


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

3. Draw children manually in custom ViewGroup

4. Android License

5. interpolators

6. Google Visualization doesn't show?

7. Hiring Developer... Have Some Free Time?