How to scale a Bitmap

by Meryl Silverburgh » Tue, 14 Apr 2009 15:31:23 GMT


Sponsored Links
 Hi,

I have constructed a Bitmap object in Java. Can you please tell me how
can I scale it (x, y with a different ratio) on android?

Thank you.

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



How to scale a Bitmap

by Pd » Tue, 14 Apr 2009 15:40:58 GMT


 Have a look at this example.

 http://www.anddev.org/resize_and_rotate_image_-_example-t621.html 


Pd





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


Sponsored Links


Other Threads

1. Google please give us 'su -' was:Am I root?

What I really meant was 'sudo'.

Cheers.



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

2. Problems with R.java in Eclipse 3.4

Hello all
I'm sorry, but I couldn't find anything searching for this (maybe I'm
just really bad at searching :))

The issue is the following:  I'm trying to write a little app to learn
programming to android devices, but it seems as if my installation of
either Eclipse or the Android SDK is screwed up.
I cannot access any items from my R.java in my 'HelloWorld.java'; and
eclipse refuses to build. But the items are there in R.java (for
example:
 public final class R {
  [...]
    public static final class id {
        public static final int btn_clickme=0x7f050001;
        public static final int txt_name=0x7f050000;
  [...]) returns a "cannot resolve name" when used in findViewById
(R.id.txt_name).

Any ideas?
Thank you very much!

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

3. Problem with DateFormat.format

4. Obtaining accurate address info by reverse geocoding

5. Debug on a G1

6. What is the purpose of different layer type?

7. Unable to get the Android source code.