Image.colormapSize

The number of colors in the colormap. Only meaningful for PseudoClass images.

Setting the colormap size may extend or truncate the colormap. The maximum number of supported entries is specified by the MaxColormapSize constant, and is dependent on the value of QuantumDepth when ImageMagick is compiled. An exception is thrown if more entries are requested than may be supported. Care should be taken when truncating the colormap to ensure that the image colormap indexes reference valid colormap entries.

  1. void colormapSize(size_t size)
    class Image
    void
    colormapSize
    (
    size_t size
    )
  2. size_t colormapSize()

Meta