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

New Post: first resize command slow

$
0
0
hi I have a question about the transparency for watermarks: I have to place a watermark and since the user is asked to enter a value from 0% to 100% for transparency, where 0% is complete opaque and 100% is completely transparent, the user usually entered 75-85% values with a very old procedure. I checked the forum and so that the correct method is using "EvaluateOperator.Divide" in a ".Evaluate" method with "Channels.Alpha", so I did "watermark.Evaluate(Channels.Alpha, EvaluateOperator.Divide, dTransp)", but I had seriuos problema to calculare a linear range of values from 0 to 100 % using a divide operator... This causes the watermark to turn quickly from opaque to transparent for the first values entered, then slightly more and more transparent for the other dividers...

As seen on other posts, the "EvaluateOperator.Set" is not a valid solution because it fades all the image, regardless the alpha channel

Is there another way to put a linear transparency factor?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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