18 #ifndef MAGICKCORE_COLORMAP_PRIVATE_H
19 #define MAGICKCORE_COLORMAP_PRIVATE_H
25 #if defined(__cplusplus) || defined(c_plusplus)
32 if ((index < 0) || (index >= (ssize_t) image->
colors))
39 return((ssize_t) index);
45 if ((index < 0) || (index >= (ssize_t) image->
colors))
56 #if defined(__cplusplus) || defined(c_plusplus)
Definition: exception.h:101
static void ValidateColormapValue(Image *image, const ssize_t index, Quantum *target, ExceptionInfo *exception)
Definition: colormap-private.h:42
MagickExport MagickBooleanType ThrowMagickException(ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format,...)
Definition: exception.c:1145
Definition: exception.h:59
size_t colors
Definition: image.h:172
char filename[MagickPathExtent]
Definition: image.h:319
#define GetMagickModule()
Definition: log.h:28
unsigned short Quantum
Definition: magick-type.h:86
static ssize_t ConstrainColormapIndex(Image *image, const ssize_t index, ExceptionInfo *exception)
Definition: colormap-private.h:29
ExceptionType severity
Definition: exception.h:104