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

New Post: Complementary Colour for Image

$
0
0
HI

I am writing text over an image and would like to find the 'best' colour for this - realising that there will be no 'right' answer if the image is multicoloured - but many images have a predominant colour.

I found this snippet, that I think reduces the image to 1 pixel to find out the colour, but I can't figure out how to do that in Magick.NET. Ideally I would like to get the complementary colour into a variable to use in image.Settings.FillColor = new MagickColor(#xxxxxx);

$ convert Waffle.jpg -scale 1x1! -format '%[pixel:u]' info:-

Any help you can give would be very much appreciated. Thank you.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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