Re: Error in API documentation.
[email protected] Mon, 8 Aug 2011 14:42:09 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
> On Sun, 7 Aug 2011, [email protected] wrote: > >> >> See: http://www.graphicsmagick.org/api/enhance.html#levelimagechannel >> >> The current (incorrect) API is listed as: >> >> unsigned int LevelImageChannel( Image *image, const char *level, >> const ChannelType channel, const double >> black_point, const double mid_point, >> const double white_point ); >> >> In fact, there is no "const char *level" to be passed. The correct API is: > > Thanks for bringing this to my attention. This problem is now fixed in > Mercurial. You're welcome, and thanks! Related to APIs: how did it come that some of the APIs take doubles for their params, (say, motion blur, w/ radius, sigma, direction) and others take a string that's parsed internally (eg: modulate)? The "modulate" class functions also operate directly on the image (versus returning a new one) and don't use the Exception struct. Am curious about the history or reason for the differences. Cheers, -bch > Bob > -- > Bob Friesenhahn > [email protected], http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ -- Brad Harder Method Logic Digital Consulting http://methodlogic.net/ http://twitter.com/bcharder ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1