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

New Post: Issue with colorization using RGB values

$
0
0
Great! That works for me.

One more question for you...

I was wondering how I would go about tinting an image with a specified color while preserving the white values. Currently, I'm able to tint a black to white gradient in yellow using:

image.Colorize(new MagickColor("#ffff00"), (Percentage)50);

This is the result: https://postimg.org/image/f25zkl09t/

However, what I would really like to achieve is something this (not exact shade of yellow I used):

https://postimg.org/image/j4wgozqz5/

Any idea on how I would go about doing that? This is assuming that I feed in a picture of a simple black to white gradient, so essentially I just need the black and shades of grey to translate to the various shades of whatever color I select.

Thanks again!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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