X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fapi%2Fcolormap.html;h=befe942279d4b7cb8e0b3fd4a66664a3ae8ae702;hb=3c98a4f16d52dec9efa9a9b4e36b5624138b324a;hp=05aa83564510ed81bae8da13c049b8dc518de951;hpb=51853f03e9181eceecbfc5739f7c89613cf29a95;p=imagemagick diff --git a/www/api/colormap.html b/www/api/colormap.html index 05aa83564..befe94227 100644 --- a/www/api/colormap.html +++ b/www/api/colormap.html @@ -1,21 +1,18 @@ - + - - - - - - ImageMagick: MagickCore, C API for ImageMagick: Colormap Methods + + + ImageMagick: MagickCore, C API for ImageMagick: Colormap Methods + + + - @@ -24,6 +21,12 @@ + + + + @@ -42,121 +45,152 @@ style="width: 114px; height: 118px; border: 0px; float: right;" /> -
+
+
- -
- - +
+ +
- + + +

AcquireImageColormap

+
+ +

AcquireImageColormap() allocates an image colormap and initializes it to a linear gray colorspace. If the image already has a colormap, it is replaced. AcquireImageColormap() returns MagickTrue if successful, otherwise MagickFalse if there is not enough memory.

+ +

The format of the AcquireImageColormap method is:

+ +
+  MagickBooleanType AcquireImageColormap(Image *image,
+    const size_t colors)
+
+ +

A description of each parameter follows:

+ +
image
+

    the image.

+ +
colors
+

    the number of colors in the image colormap.

+

CycleColormap

@@ -166,7 +200,7 @@ _8c.html" target="source" name="CycleColormap">CycleColormap

The format of the CycleColormapImage method is:

-  MagickBooleanType CycleColormapImage(Image *image,const long displace)
+  MagickBooleanType CycleColormapImage(Image *image,const ssize_t displace)
 

A description of each parameter follows:

@@ -182,10 +216,10 @@ _8c.html" target="source" name="CycleColormap">CycleColormap
@@ -194,5 +228,16 @@ _8c.html" target="source" name="CycleColormap">CycleColormap Contact the Wizards
+