paint.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/draw.h"
#include "MagickCore/draw-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/gem-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/resource_.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"

Defines

#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 ** DestroyHistogramThreadSet (size_t **histogram)
static size_t ** AcquireHistogramThreadSet (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)

Define Documentation

#define MaxStacksize   524288UL

Referenced by FloodfillPaintImage().

#define NumberPaintBins   256

Referenced by OilPaintImage().

#define OilPaintImageTag   "OilPaint/Image"

Referenced by OilPaintImage().

#define OpaquePaintImageTag   "Opaque/Image"

Referenced by OpaquePaintImage().

#define PushSegmentStack ( up,
left,
right,
delta   ) 
Value:
{ \
  if (s >= (segment_stack+MaxStacksize)) \
    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++; \
        } \
    } \
}

Referenced by FloodfillPaintImage().

#define TransparentPaintImageTag   "Transparent/Image"
#define TransparentPaintImageTag   "Transparent/Image"

Function Documentation

static size_t** AcquireHistogramThreadSet ( const size_t  count  )  [static]
static size_t** DestroyHistogramThreadSet ( size_t **  histogram  )  [static]
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 
)
MagickExport Image* OilPaintImage ( 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 
)

Generated on 27 Apr 2020 for MagickCore by  doxygen 1.6.1