IGRSoft / IGRPhotoTweaks

Drag, Rotate, Scale and Crop
https://igrsoft.com
MIT License
237 stars 71 forks source link

Aspect ratio #10

Closed ritika1159 closed 7 years ago

ritika1159 commented 7 years ago

Hi,

I have seen that but i want to know that when user select the image for first time it is setting cropview as of imagesize. It is calculating maxbounds (). I want to know how will it set 1:1 aspect ratio and lock it by default.

Thanks Ritika

ikorich commented 7 years ago

Hi @ritika1159

self.setCropAspectRect(aspect: "1:1") self.lockAspectRatio(true)