title: How to use BitmapShader without repeat
body: <p>I want to create a heart shape drown on screen when user touches the smartphone screen(working on a drawing android app). So i setup the BitmapShader as below code</p>
  <pre><code>//Initialize the bitmap object by loading an image from the resources folder
  Bitmap fillBMP = BitmapFactory.decodeResource(context.getResources(), R.drawable.heart);
  fillBMP = Bitmap.createScaledBitmap(fillBMP, 20, 20, false);                
  //Initialize the BitmapShader with the Bitmap object and set the texture tile mode
  shader= new BitmapShader(fillBMP, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
  </code></pre>
  <p>Then i assign the shader paint object.</p>
  <pre><code>paint.setShader(preset.shader);
  </code></pre>
  <p>I have also setup the touch listener to track the user finger. On user touch i draw this on canvas object as.</p>
  <pre><code>Path path = new Path();
  path.moveTo(mid1.x, mid1.y);
  path.quadTo(midmid.x, midmid.y, mid2.x, mid2.y);
  canvas.drawPath(path, paint);
  </code></pre>
  <p>This give me this</p>
  <p><a href="https://i.imgur.com/BXvc41N.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/BXvc41N.png" alt="enter image description here" /></a></p>
  <p>Where some heart shape are croped and also these are repeated. What i want not these are repeated and never croped like this.</p>
  <p><a href="https://i.stack.imgur.com/wZL1C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wZL1C.png" alt="enter image description here" /></a></p>
  <p>Thanks in advance.</p>