I have a source bitmap of 300x100. I want to make a circle of 300x300 from this bitmap BUT i want to keep the aspect ratio. so the idea is to resize the source bitmap to 900*300 and them crop the source bitmap to 300x300 FROM THE MIDDLE (so remove 300 px from the top and remove 300 px from the bottom) so that at the end i have a square of 300x300 on with i can extract the circle.
is their anyone who can explain me how to do that ?