adding alpha channel
Posted: 2012-07-07T17:06:46-07:00
Hey Guys,
i started working with magick++ and i have a problem. I open a png file and like to make it transparent.
but everything i tried is not working:
can someone help me? how can i add an alpha channel to my image?
cheers
glow
i started working with magick++ and i have a problem. I open a png file and like to make it transparent.
but everything i tried is not working:
Code: Select all
Image baseImage; //create base image
baseImage.read("./img/desert.png"); //read file
//stuff i tried
baseImage.magick( "RGBA" );
baseImage.matte( "TRUE" );
baseImage.opacity(50);
cloneBaseImage.write(fileName); //safe file
cheers
glow