cropToSquare

Crops the Bitmap into a square image.

Author

Arnau Mora

Since

20210520

Return

The new cropped image, or null if there has been an error.

Throws

When there has been an error while processing the new image's size.