Magick++ API Incompatibility: Frame Attribute

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?".

Magick++ API Incompatibility: Frame Attribute

Post by tdan »

The order of the arguments passed to Frame differ between the command line and Magick++.

On the command line, -frame is an image operator.

Code: Select all

-frame widthxheight{+-}outer-bevel-width{+-}inner-bevel-width
In the Magick++ API, frame is a method of the Image class.

Code: Select all

frame(unsigned int width_, unsigned int height_, int innerBevel_ = 0, int outerBevel_ = 0)
The Outer-Bevel-Width and Inner-Bevel-Width arguments have been switched

User avatar
Posts: 8884
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Magick++ API Incompatibility: Frame Attribute

Post by anthony »

It is just the way the two API's were implemented. Neight can be changed at this point as both have been in long use.

However prehaps the perl API documentation should make a note about the argument order switch.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages