Hi,

Following is my simple testing code :

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Bitmap gImage = BitmapFactory.decodeResource(
        j111testActivity.this.getResources(), R.drawable.sbg);
       System.out.println ("Image width ="+gImage.getWidth());
       System.out.println ("Image height="+gImage.getHeight());
    }

The sbg is a PNG file. The Resolution is 574X574.
If AVD is Android 2.1 , the Image width & height are 574.
But if AVD changed to Android 2.2,  the Image's width & height are
861.
Who can teach me problem come from there? or it is a correct result?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to