title: Huge spike in memory consumption when using png with lot of transparent area
body: <p>I am using a <strong>button</strong> with a <strong>png background</strong> for CopyToClipboard function in my app (used about 6-7 times in various fragment). Since the <em>image should be small</em> for my purpose, I increased the area of my image by putting in <strong>extra transparent area</strong> around the image so that I could <em>increase the button size for <strong>clickable area</em></strong> but keep the <em>image small</em> (I know its not efficient and since then I have devised better way to achieve this).</p>
  
  <p>I noticed the huge spikes later on afterwards when uploading some other images (big images about 150kb size), and after a lot of debugging (and I do mean a lot!) I found that the problem was not due to the bigger images but due to the CopyToClipboard image which was of just 8kb in size!!! Changing back to older CopyToClipboard image (having lesser Transparent area) brought the memory consumption back to normal.</p>
  
  <p><strong>My question is</strong> <strong><em>why did that happen</em></strong>? For such a <strong>small image</strong> to create such huge spikes (more than <strong>doubled the memory consumption</strong> from previous) and made the app slow, is quite baffling.</p>
  
  <p>Image shown below : The White area is the transparent area. My button dimension : 15dp x 15dp .</p>
  
  <p><a href="https://i.stack.imgur.com/xUS29.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xUS29.png" alt="enter image description here"></a></p>
  
  <p>I repeat, <strong>My question is</strong> <strong><em>why did that happen?</em></strong> Not a solution for it since I already solved the problem.</p>