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
Make an image semi transparent
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Make an image semi transparent
I suggest you work out the command line that gives the result you want. For example, it might be:
Then find the function you need. I don't use Wand, but the function MagickEvaluateImageChannel() seems likely.
Code: Select all
convert bookmark.png -channel A -evaluate Multiply 0.5 +channel out.png
snibgo's IM pages: im.snibgo.com