Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Round the corners of asset image

$
0
0

@MasterQuestMaster wrote:

Does Monogame have an easy way to draw a rectangular image (loaded into a Texture2D) with rounded corners?

I have a lot of images that I'm loading into Texture2D objects. The images are rectangular with a set size. I can't split them up (like what seems to be a common approach for variable sized rounded-corner rectangles).

I need to draw those images with slightly rounded corners, because the images themselves have slightly rounded corners but without a transparent back. That causes the images to have some white corners that I would like to cut away using rounded corners.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles