Managing alpha transparency using C and core interface.
Posted: 2010-11-02T12:07:11-07:00
Hi,
I am trying to manipulate a png image through C code and the core library interface. Basically the source png image, created by someone else, has a transparent background and a filled in shape. I would like to reduce the opacity of the filled in shape so that when the png image is overlaid over another image in the web browser, the content underneath shows through the filled area (like a highlighter).
As well as being part of a larger legacy system, the manipulation involves a large amount of these images and a very convoluted file naming and tree structure, hence the need to do this in C.
I have used IM some years ago but find myself very rusty on the current incarnation and struggling to get a foothold on where to actually start on this. Since all of the examples actually use the command line tools and there appears to be little in the way of C code examples, could someone point me to the C api calls I need to look at to manage the transparency/alpha please?
My thanks in advance.
Penny
I am trying to manipulate a png image through C code and the core library interface. Basically the source png image, created by someone else, has a transparent background and a filled in shape. I would like to reduce the opacity of the filled in shape so that when the png image is overlaid over another image in the web browser, the content underneath shows through the filled area (like a highlighter).
As well as being part of a larger legacy system, the manipulation involves a large amount of these images and a very convoluted file naming and tree structure, hence the need to do this in C.
I have used IM some years ago but find myself very rusty on the current incarnation and struggling to get a foothold on where to actually start on this. Since all of the examples actually use the command line tools and there appears to be little in the way of C code examples, could someone point me to the C api calls I need to look at to manage the transparency/alpha please?
My thanks in advance.
Penny