How to resize canvas in canvas (java android)?

  • not easier to change the size of the view? - georgehardcore 1:59

1 answer 1

Try this:

canvas.drawBitmap(bitmap, null, new RectF(0, 0, canvasWidth, canvasHeight), null); 

Drawing a rectangle from the top left corner, where: canvasWidth, canvasHeight are the length and width, respectively