I am looking for a library in .net or javascript that will allow me to programmatically edit an image. For example, I would like to crop an image to an arbitrary 2D polygon (e.g. star- or wedge-shaped) from within a program.
EDIT: The preferred languages would be C# or javascript
I can recommend ImageMagick