Jump to content

Question about subtracting selection


Recommended Posts

Hi guys, I use paint.net quiet often and decided to do a bit of programming for batch processing some images (inspired by paint.net). I realize this is not directly related to paint.net, but I could not find any sdk for paint.net, i would've used that instead. Anyway, the question is simple, how do you go about cropping an image with an ellipse shape? I've figured out how to crop to rectangle shape, draw, rotate, etc, but how do you go about cropping to an ellipse shape? Do you just create a selection and clear it with transparent color? If so, then how do you make that selection?

In paint.net, i select all, then I grab the round selection tool, set it to subtract, and make the round selection and clear what's left. Or, I could just make the round selection and hit "crop to selection". But how is this done in code?

Thanks,

Viktor.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...