Creating a color palette from an specifc color
Posted: 2019-09-14T12:54:22-07:00
Hello Everyone.
Is MagickNET able to create a color palette from an specific color ?
Ex: I have the following color:
231,49,0 (RGB).
I would like to create a color palette based on this color. And then replace pixels accordingly.
Ex: If the pixel is 0,0,0 , replace with the main color (pixel is totally black)
If the pixel is something like 80,80,80 replace with a lighter version (since the pixel has more white on it than the original black pixels)
And so goes on.
Does ImageMagick or MagickNet provide any mechanism of doing so (at least get RGB values) ?
I'm uploading an image to exemplify my question. It has been made with another tool, but serves as example to show what i'm trying to achieve.
Thanks in advance
Is MagickNET able to create a color palette from an specific color ?
Ex: I have the following color:
231,49,0 (RGB).
I would like to create a color palette based on this color. And then replace pixels accordingly.
Ex: If the pixel is 0,0,0 , replace with the main color (pixel is totally black)
If the pixel is something like 80,80,80 replace with a lighter version (since the pixel has more white on it than the original black pixels)
And so goes on.
Does ImageMagick or MagickNet provide any mechanism of doing so (at least get RGB values) ?
I'm uploading an image to exemplify my question. It has been made with another tool, but serves as example to show what i'm trying to achieve.
Thanks in advance