Hello,
I have a question about how to go about properly scaling ImageLabels across different screensizes, specifically imagelabels with images that have transparent backgrounds.
I’m trying to create a horizontal scrollingframe list with square buttons. I need this to scale perfectly across all screensizes, so I am using scale for everything, and used AspectRatioConstraints on the buttons. Here’s what I’m talking about:
That’s all fine and well. It scales across every screensize and aspect ratio while retaining the square buttons and the proportions of everything. My problem is that the images get a weird border around them, when that border is not present in the raw file. I’ve done some searching and I’ve figured out that it happens when the image is not sized at it’s native resolution. And that’s the problem - the image is almost never going to be at it’s native resolution because I’m using scale here. Here’s what I mean:
Example
In this image, you can see that there is not a green border around the vehicle. This is reflective of the raw file. This image is at 497x440 pixels in Studio, which is it’s native resolution. (Yes, there is a little green border at the top but that’s just because of the sloppy job I did at removing the background. Even if I remove the background perfectly, what I describe next still happens.
Here, even though it may be hard to see, there is a visible green border around the vehicle. Now, it’s at 120x124 in Studio, which is not it’s native resolution.
Anyone know a way to get around this or should I just use offset for this particular UI element?