konczuras 0 Junior Poster in Training

Hello!

I'd like to create transparent PNGs from an existing image in C#.
The problem is that I'd like to do it with previously defined shapes (eg. ellipse, rectangle, triangle, etc.). So the part of the image, which fits in the ellipse would stay, and the other parts would be painted with a transparent color. This would be the goal.

Now, I am able to draw an ellipse upon the pictures, and this should be inverted, very much like the invert selection method.


Is there any way to approach this?

Thank you very much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.