Page 1 of 1

Make an image semi transparent

Posted: 2017-04-21T01:43:24-07:00
by him21sri
I have an image which I want to make that image semi transparent using C api. I am currently on IM - 6.8.9-10 on unix and using wands API to do image manipulations. Please suggest how can I make my image semi transparent.

Image : http://cdn.atomex.net/bookmark.png

Re: Make an image semi transparent

Posted: 2017-04-21T03:48:06-07:00
by snibgo
I suggest you work out the command line that gives the result you want. For example, it might be:

Code: Select all

convert bookmark.png -channel A -evaluate Multiply 0.5 +channel out.png
Then find the function you need. I don't use Wand, but the function MagickEvaluateImageChannel() seems likely.