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?".
Post Reply
tdan

Magick++ API Incompatibility: Frame Attribute

Post by tdan » 2007-02-06T19:27:48-07:00

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

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

Code: Select all

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

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
anthony
Posts: 8882
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Magick++ API Incompatibility: Frame Attribute

Post by anthony » 2007-02-18T23:33:40-07:00

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
https://imagemagick.org/Usage/

Post Reply