ScaleType Crop, How Do I Choose Where It's Cropped?

So I have recently encountered an issue where I want an image in my ImageButton to be cropped, but I want to be able to choose positionally where it is cropped.

For Example;

This is how it is automatically cropped, but here’s the full image;

I would like to choose where it does the cropping, specifically I want it to be cropped by his head.
Are there properties I can edit to achieve this result?

Furthermore, is it possible to manipulate the zoom on the cropping?

Cheers!

1 Like

You can transform the crop by using the ImageRectSize and ImageRectOffset properties.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.