How to crop an ImageLabel in a GUI?

Hello! Recently, I was looking into cropping an ImageLabel such that it could fit in a frame. Something like:
image
However, I find it a bit confusing on how I would go about doing this? How do I crop part of my ImageLabel to fit the frame nicely? I was looking about the DevForum and saw a bit about ImageRectSize, but I’m not sure how this property works and the explanations provided was not sufficient. Any help is appreciated!

2 Likes

Here is what you could do:

You could put the ImageLabel inside a frame with ClipsDescendants to true. Resize the ImageLabel to however you like
image

2 Likes

Hey, thanks for replying! Turns out I wanted to add UICorners to my frame and I found it easier to work with CanvasGroups instead. I’ll still mark your reply as the solution as it helped at the time I was having issues with this

3 Likes

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