which function in Magick++ performs like "-layers optimize"?

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
carol_sun
Posts: 19
Joined: 2009-11-06T00:49:59-07:00
Authentication code: 8675309

which function in Magick++ performs like "-layers optimize"?

Post by carol_sun »

"Lets now use the "-layers", method 'OptimizeTransparency' (Added IM v6.3.4-4) to replace any pixel that does change the displayed result with transparency. "
see: http://www.imagemagick.org/Usage/anim_opt/#opt_trans
By using "Transparency Optimization", the gif file size would be reduced.

Except command-line tool, I want to know which function can fulfish this in Magick++. Who can tell me ?
http://www.imagemagick.org/Magick++/STL.html
I didn't find it.
carol_sun
Posts: 19
Joined: 2009-11-06T00:49:59-07:00
Authentication code: 8675309

Re: which function in Magick++ performs like "-layers optimize"?

Post by carol_sun »

T_T I'm waiting for the answer, anyone who knows it please help me. I really appreciate it.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: which function in Magick++ performs like "-layers optimi

Post by anthony »

Looking at the doc give I would have thought it was layerImage But that looks more like it performs a 'separate' function than the image layering functions.

Looks like the API is out of date.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply