title: Flutter- How to resize height and width of an image in custom Paint?
body: <p>Here I am passing a list of the image to ImagePaint class to clip image in a circular, Its fine the images are clipping but only clipping some part of the image, If I could decrease this height and width of the image. Then it will fit the circle, Please comment if any have an idea.</p>
  
  <pre><code>void paint(Canvas canvas, Size size) {
  int c = 0;
  canvas.save();
  canvas.translate(size.width / 2, size.height / 2);
  canvas.rotate(-rotation);
  
  for (var i = 0; i &lt; 16; ++i) {
    if (i % 2 == 0) {
      canvas.drawLine(
        new Offset(0.0, 0.0),
        new Offset(0.0, size.width / 2 - 4.2),
        tickPaint,
      );
    } else {
      canvas.save();
      canvas.translate(-0.0, -((size.width) / 2));
      canvas.clipPath(path);
      if (images[c] != null) {
        ui.Image img = images[c];
        canvas.drawImage(img, Offset(0.0, 0.0), new Paint());
      }
      canvas.rotate(2 * pi);
      canvas.restore();
      c++;
    }
    canvas.rotate(2 * pi / 16);
  }
  canvas.restore();}
  </code></pre>
  
  <p>This image is printed in a circular manner:
  <img src="https://i.stack.imgur.com/I2N2r.png" alt="this image is printed in a circular manner"></p>
  
  <p>This is my app I am clipping image and printing in circular:
  <img src="https://i.stack.imgur.com/1FBOy.png" alt="This is my app I am clipping image and printing in circular"></p>