Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to Change the color of each pixel in a image

$
0
0
You should call the Write method of the WritablePixelCollection class that is returned by image.GetWritablePixels() to make sure the pixels are written to the image. You could also do what you are doing in a different way:
using (MagickImage image = new MagickImage())
{
    image.Read(@"C:\.....\test1.png");
    image.Evaluate(Channels.Red, EvaluateOperator.Set, Quantum.Max);
    image.Write(@"C:\.....\test2.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>