GammaImage Function Prototype/Documentation Error

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
cappelaere
Posts: 6
Joined: 2011-02-16T11:11:40-07:00
Authentication code: 8675308

GammaImage Function Prototype/Documentation Error

Post by cappelaere »

Documentation http://www.imagemagick.org/api/enhance.php says:
MagickBooleanType GammaImage(Image *image,const double gamma)

but code says:
MagickExport MagickBooleanType GammaImage(Image *image,const char *level)

Thanks,
Pat.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GammaImage Function Prototype/Documentation Error

Post by magick »

We'll have a fix for the GammaImage() documentation within a few days. Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: GammaImage Function Prototype/Documentation Error

Post by anthony »

the argument name of "level" is a bit miss-leading as they are not levels.

What it is, is a string containing a list of gamma values for each channel. Or one value for all channels.
just like the -gamma option

May be "gamma_args"
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply