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

New Post: Complementary Colour for Image

$
0
0
Starting with Magick.NET 7.0.4.100 (just released) you can do this:
MagickColor fillColor;
using (MagickImage image = new MagickImage("Waffle.jpg"))
{
  image.Scale(new MagickGeometry("1x1!"));
  using (PixelCollection pixels = image.GetPixels())
  {
    ColorRGB average = pixels.GetPixel(0, 0).ToColor();
    fillColor = average.ComplementaryColor();
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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