MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
paint.c File Reference
Include dependency graph for paint.c:

Go to the source code of this file.

Macros

#define MaxStacksize   524288UL
 
#define PushSegmentStack(up, left, right, delta)
 
#define NumberPaintBins   256
 
#define OilPaintImageTag   "OilPaint/Image"
 
#define OpaquePaintImageTag   "Opaque/Image"
 
#define TransparentPaintImageTag   "Transparent/Image"
 
#define TransparentPaintImageTag   "Transparent/Image"
 

Functions

MagickExport MagickBooleanType FloodfillPaintImage (Image *image, const DrawInfo *draw_info, const PixelInfo *target, const ssize_t x_offset, const ssize_t y_offset, const MagickBooleanType invert, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GradientImage (Image *image, const GradientType type, const SpreadMethod method, const StopInfo *stops, const size_t number_stops, ExceptionInfo *exception)
 
static size_t ** DestroyHistogramTLS (size_t **histogram)
 
static size_t ** AcquireHistogramTLS (const size_t count)
 
MagickExport ImageOilPaintImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport MagickBooleanType OpaquePaintImage (Image *image, const PixelInfo *target, const PixelInfo *fill, const MagickBooleanType invert, ExceptionInfo *exception)
 
MagickExport MagickBooleanType TransparentPaintImage (Image *image, const PixelInfo *target, const Quantum opacity, const MagickBooleanType invert, ExceptionInfo *exception)
 
MagickExport MagickBooleanType TransparentPaintImageChroma (Image *image, const PixelInfo *low, const PixelInfo *high, const Quantum opacity, const MagickBooleanType invert, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ MaxStacksize

#define MaxStacksize   524288UL

◆ NumberPaintBins

#define NumberPaintBins   256

◆ OilPaintImageTag

#define OilPaintImageTag   "OilPaint/Image"

◆ OpaquePaintImageTag

#define OpaquePaintImageTag   "Opaque/Image"

◆ PushSegmentStack

#define PushSegmentStack (   up,
  left,
  right,
  delta 
)
Value:
{ \
if (s >= (segment_stack+MaxStacksize)) \
{ \
segment_info=RelinquishVirtualMemory(segment_info); \
image_view=DestroyCacheView(image_view); \
floodplane_view=DestroyCacheView(floodplane_view); \
floodplane_image=DestroyImage(floodplane_image); \
ThrowBinaryException(DrawError,"SegmentStackOverflow",image->filename) \
} \
else \
{ \
if ((((up)+(delta)) >= 0) && (((up)+(delta)) < (ssize_t) image->rows)) \
{ \
s->x1=(double) (left); \
s->y1=(double) (up); \
s->x2=(double) (right); \
s->y2=(double) (delta); \
s++; \
} \
} \
}
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
Definition: cache-view.c:253
@ DrawError
Definition: exception.h:67
MagickExport Image * DestroyImage(Image *image)
Definition: image.c:1181
MagickExport MemoryInfo * RelinquishVirtualMemory(MemoryInfo *memory_info)
Definition: memory.c:1229
#define MaxStacksize

◆ TransparentPaintImageTag [1/2]

#define TransparentPaintImageTag   "Transparent/Image"

◆ TransparentPaintImageTag [2/2]

#define TransparentPaintImageTag   "Transparent/Image"

Function Documentation

◆ AcquireHistogramTLS()

static size_t ** AcquireHistogramTLS ( const size_t  count)
static

◆ DestroyHistogramTLS()

static size_t ** DestroyHistogramTLS ( size_t **  histogram)
static

Definition at line 654 of file paint.c.

References GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.

Referenced by AcquireHistogramTLS(), and OilPaintImage().

◆ FloodfillPaintImage()

◆ GradientImage()

◆ OilPaintImage()

◆ OpaquePaintImage()

◆ TransparentPaintImage()

◆ TransparentPaintImageChroma()