Poor Quality Image when setting Sprite

Hi there,

I made a code in which I set the image of a panel with another sprite but when I set the image it turns into a very poor quality. Look at those images.

Its like the borders have became weird.

I’m setting the sprites by storing them in a mono behaviour and then set the image with those sprites I have stored