wasabeef / picasso-transformations

An Android transformation library providing a variety of image transformations for Picasso

Repository from Github https://github.comwasabeef/picasso-transformationsRepository from Github https://github.comwasabeef/picasso-transformations

CropCircleTransformation creates an extra Bitmap

pushbit opened this issue · comments

I believe it's not necessary to create squaredBitmap. Instead, the BitmapShader can be given a Matrix that has setTranslate(-width, -height). This should accomplish the same thing that creating squaredBitmap does, shifting the viewport on source so that its centre is drawn into bitmap.

Hi.

Let's follow up on that issue.

Created pull request #3 to resolve this.