To edit a picture in C#, you can use the Bitmap and Graphics classes from the System.Drawing namespace.
Here's an example of how to invert the colors of an image:
main.cs880 chars24 lines
In this example, we first load the original image. Then, we create a new Bitmap and Graphics object to hold the edited image. We use a ColorMatrix to invert the colors of the original image and apply it to the edited image using the DrawImage method. Finally, we save the edited image to a new file.
This is just one example of the many image editing operations you can perform using C# and the System.Drawing namespace.
gistlibby LogSnag