how to stretch image from mouse pointer
<p>i have made a project in which i have taken an image on canvas. i can move my image </p>

<p>from one point to another but now i want to stretch the image manually means i want to </p>

<p>stretch the image from the mouse pointer or i can say that i want to capture image which i </p>

<p>have draw on canvas with mouse pointer.</p>

<pre><code>@Override
    public void onDraw(Canvas canvas) {
        Bitmap _scratch = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
        canvas.drawColor(Color.BLACK);
        canvas.drawBitmap(_scratch, 10, 10, null);
    }

@Override
    public void surfaceDestroyed(SurfaceHolder holder) {
        boolean flag = true;
        m.setRunning(false);
        while (flag) {
            try {
                m.join();
                retry = false;
            } catch (Exception e) {

            }
        }
    }
</code></pre>
