RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

Add TopCrop option to ScaleType #372

Closed AliAsadi closed 2 years ago

AliAsadi commented 5 years ago

Add the ability to make TopCrop in ScaleType.

TopCrop will work the same as CenterCrop in full mode when the CameraView hight = "match_parent"

But when the user decided to show half of the camera for example if hight = "300dp", the CenterCrop will show the center part of the camera while the TopCrop will show the top part.