Avokado
Avokado

Reputation: 59

Zooming Bitmap after drawing on it?

I'am doing FFT processing on .wav signal and draw it on Bitmap.

How it looks, when it is finished:

picture of my fft

Is there any way to zoom this picture?

Upvotes: 0

Views: 432

Answers (1)

TeeTracker
TeeTracker

Reputation: 7350

Here is some codes from my old projects which needs also scaling in onDraw, they might help you or not.

@Override
public void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    canvas.save();
    ....
    canvas.scale(mScaleFactor, mScaleFactor);

    mIcon.draw(canvas);
    canvas.restore();
}

Upvotes: 1

Related Questions