I'm looking to transform an image using a Matrix on the onDraw method of a custom class I created which extends ImageView e.g.,
@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.save();
canvas.setMatrix(imageMatrix);
canvas.drawBitmap(((BitmapDrawable)mIcon).getBitmap(), imageMatrix, null);
canvas.restore();
}
However, what I coded above does not really work. How exactly do I apply the imageMatrix on the canvas? Thanks!