Basically, I have a rectangular bitmap and want to create a new Bitmap with squared dimensions which will contain the rectangular bitmap inside of it.
So, for example, i
Whoops, just realized what the problem is. I was drawing the wrong Bitmap to the Canvas. If it helps anyone in the future, remember that the Canvas is already attached and will paint to the bitmap you specify in its constructor. So basically:
This:
c.drawBitmap(resultBitmap, sourceRect, destinationRect, null);
Should actually be:
c.drawBitmap(sourceBitmap, sourceRect, destinationRect, null);