Taking pictures with android camera
<p>I've created my own controller to take pictures with the android camera. My problem is that the output shows a smaller image than expected. I've checked the width and height of my bitmap like this:</p>

<pre><code>int w = bmp.getWidth();
int h = bmp.getHeight();
</code></pre>

<p>This outputs <code>w = 480</code> and <code>h = 640</code> which I assume is the size in pixels. This is my method for taking the picture</p>

<pre><code>public void takePicture() {
        Log.i("Camera View: ", "Take Picture");
        camera.takePicture(null, null, new PictureCallback() {
            @Override
            public void onPictureTaken(byte[] data, Camera camera) {
                if (null != callback) {
                    callback.onJpegPictureTaken(data, camera);

                }
            }
        });
 }
</code></pre>

<p>Where my <code>Activity</code> subscribes to this event <code>onJpegPictureTaken</code></p>

<pre><code>    @Override
    public void onJpegPictureTaken(byte[] data, Camera camera) {
        Intent i = new Intent(this, ImageEditing.class);
        i.putExtra("image", data);
        startActivity(i);
    }
</code></pre>

<p>The purpose of this is to launch a new <code>Activity</code> in order to edit the image, like zooming and dragging. This ImageEditing.class gets the picture like this:</p>

<pre><code>flipped = flipByteArrayNintyDegress(getIntent().getExtras()
                .getByteArray("image"));

        Bitmap bmp = BitmapFactory.decodeByteArray(flipped, 0, flipped.length);
        image = (ImageView) findViewById(R.id.imageView1);
        image.setImageBitmap(bmp);
        image.setOnTouchListener(this);
</code></pre>

<p>I first thought that my <code>ImageView</code> had some restriction due to the height and width of the <code>ImageView</code>, but that is not the case. Here is the layout XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;ImageView
        android:id="@+id/imageView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="matrix"/&gt;

&lt;/FrameLayout&gt;
</code></pre>

<p>Here is the result when I capture the image</p>

<p><img src="http://i.stack.imgur.com/VE78O.png" alt="enter image description here">
 Does anybody know what's going on here? Why is the image being scaled? </p>
