The way to calculate Bitmap size?
<p>I'm trying to find the size of my image but not to load into memory. I use the flowing code</p>

<pre><code>BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeResource(a.getResources(), R.drawable.icon, o);
int width1 = o.outWidt;     
int height1 = o.outHeight;
</code></pre>

<p>Now, I make some comparison:</p>

<pre><code>Bitmap icon = BitmapFactory.decodeResource(a.getResources(), R.drawable.icon);
int width = icon.getWidth();
int height = icon.getHeight();
</code></pre>

<p>Why width, height is not equal to width1 and height1 ?</p>
