I have for points in 2d space (p1, p2, p3, p4) where I want to draw a shape using them, but also want to fill inside this shape with an Image file (png). I won’t have any borders, just the Image itself filling the dimensions of the shape fully.
I will have to draw the shapes 1000s of times a second so anything that’s faster would be cool, but the shapes themselves are 50×50 pixels, so not very big.
Any ideas?
You can use an ImageBrush to fill any Rectangle, which uses your points. You just need to set the Rectangle.Fill property to your brush.
This is discussed more here.