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.
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.