18 #ifndef _MAGICKCORE_COLORMAP_PRIVATE_H
19 #define _MAGICKCORE_COLORMAP_PRIVATE_H
25 #if defined(__cplusplus) || defined(c_plusplus)
32 if ((index < image->colors) && ((ssize_t) index >= 0))
42 if ((index < 0) || (index >= (ssize_t) image->
colors))
45 "InvalidColormapIndex",
"`%s'",image->
filename);
53 #if defined(__cplusplus) || defined(c_plusplus)
static IndexPacket ConstrainColormapIndex(Image *image, const size_t index)
Definition: colormap-private.h:29
static MagickBooleanType IsValidColormapIndex(Image *image, const ssize_t index, IndexPacket *target, ExceptionInfo *exception)
Definition: colormap-private.h:39
Definition: exception.h:102
MagickBooleanType
Definition: magick-type.h:214
char filename[MaxTextExtent]
Definition: image.h:278
Definition: magick-type.h:217
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:1062
Definition: exception.h:60
size_t colors
Definition: image.h:174
#define GetMagickModule()
Definition: log.h:29
Definition: magick-type.h:216
Quantum IndexPacket
Definition: pixel.h:129
ExceptionInfo exception
Definition: image.h:287