Is there how to crop an image in polygon format?


is there how to crop an image in polygon format?
Or something that has a similar effect?
I also thought about rendering the images separately.


I created this drawing using the “render draw”. My idea is to cut out to generate several images with a proportion of these polygons.

Explaining what I’m doing: I’m trying to create a map generator. Thanks for listening!



Hmm, that’s going to be tricky. Perhaps DrawPixels could be of use:



so, I converted the code to DrawPixel, it worked perfectly.
I noticed that he uses the sprite component to make the drawing.
so I will try to generate component sprites at runtime and draw the specific region in that sprite.

The idea is to have several sprites generated dynamically separating the regions.

I will look at topics on that.