Effective way of making negative of image without external dlls
问题 That is the solution to make a negative from a image in C# Windows Forms without any dlls and in a effective, fast way? 回答1: The best way to do this is directly accessing the pixels with bitmap data. Just to add some timing details: Performing Negate on an 8 Megapixel Image (on a 2.4 Ghz Core 2 Duo): SetPixel (~22 seconds) - 220 Times slower Color Matrix, Matajon's method below (~750 milliseconds) - 7 times slower Directly accesing the bitmap data (~100 milliseconds) - Fastest So, if you can