Make an image semi transparent

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
him21sri
Posts: 36
Joined: 2016-05-19T05:27:37-07:00
Authentication code: 1151

Make an image semi transparent

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Make an image semi transparent

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply