MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#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"
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 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) |
#define MaxStacksize 524288UL |
#define NumberPaintBins 256 |
#define OilPaintImageTag "OilPaint/Image" |
#define OpaquePaintImageTag "Opaque/Image" |
#define PushSegmentStack | ( | up, | |
left, | |||
right, | |||
delta | |||
) |
#define TransparentPaintImageTag "Transparent/Image" |
#define TransparentPaintImageTag "Transparent/Image" |
|
static |
Definition at line 667 of file paint.c.
References AcquireQuantumMemory(), DestroyHistogramTLS(), GetMagickResourceLimit(), and ThreadResource.
Referenced by OilPaintImage().
|
static |
Definition at line 654 of file paint.c.
References GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquireHistogramTLS(), and OilPaintImage().
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 | ||
) |
Definition at line 112 of file paint.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AllCompliance, _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::background_color, CloneImage(), _Image::colorspace, _Image::columns, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, _DrawInfo::fill, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetFillColor(), GetMagickModule, GetPixelChannels(), GetPixelGray(), GetPixelInfo(), GetPixelInfoPixel(), GetVirtualMemoryBlob(), GRAYColorspace, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), IsGrayColorspace(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxStacksize, OpaqueAlpha, PushSegmentStack, QuantumRange, QueryColorCompliance(), RelinquishVirtualMemory(), ResourceLimitError, _Image::rows, SetImageAlpha(), SetImageBackgroundColor(), SetImageColorspace(), SetImageStorageClass(), SetPixelGray(), SetPixelViaPixelInfo(), _DrawInfo::signature, _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, UndefinedPixelTrait, _SegmentInfo::x1, _SegmentInfo::x2, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPrimitive().
MagickExport MagickBooleanType GradientImage | ( | Image * | image, |
const GradientType | type, | ||
const SpreadMethod | method, | ||
const StopInfo * | stops, | ||
const size_t | number_stops, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 409 of file paint.c.
References AcquireDrawInfo(), AcquireQuantumMemory(), _GradientInfo::angle, _GradientInfo::bounding_box, _GradientInfo::center, _Image::columns, DegreesToRadians(), DestroyDrawInfo(), DrawGradientImage(), EastGravity, _Image::filename, GetImageArtifact(), GetMagickModule, _DrawInfo::gradient, _GradientInfo::gradient_vector, _RectangleInfo::height, IsEventLogging(), LinearGradient, LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickGravityOptions, MagickMax, MagickMin, NorthEastGravity, NorthGravity, NorthWestGravity, _GradientInfo::number_stops, ParseAbsoluteGeometry(), ParseCommandOption(), _GradientInfo::radii, _GradientInfo::radius, ResourceLimitError, _Image::rows, _Image::signature, SouthEastGravity, SouthGravity, SouthWestGravity, _GradientInfo::spread, _GradientInfo::stops, StringToDouble(), ThrowBinaryException, TraceEvent, _GradientInfo::type, WestGravity, _RectangleInfo::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by RenderMVGContent().
MagickExport Image * OilPaintImage | ( | const Image * | image, |
const double | radius, | ||
const double | sigma, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 690 of file paint.c.
References AcquireAuthenticCacheView(), AcquireHistogramTLS(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, DestroyCacheView(), DestroyHistogramTLS(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPThreadId(), GetOptimalKernelWidth2D(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelIntensity(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, NumberPaintBins, OilPaintImageTag, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), ResourceLimitError, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, and UndefinedPixelTrait.
Referenced by PreviewImage().
MagickExport MagickBooleanType OpaquePaintImage | ( | Image * | image, |
const PixelInfo * | target, | ||
const PixelInfo * | fill, | ||
const MagickBooleanType | invert, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 911 of file paint.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, _Image::columns, ConformPixelInfo(), DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelChannelTraits(), GetPixelInfo(), GetPixelInfoPixel(), _PixelInfo::green, GreenPixelChannel, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaquePaintImageTag, _Image::progress_monitor, _PixelInfo::red, RedPixelChannel, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
MagickExport MagickBooleanType TransparentPaintImage | ( | Image * | image, |
const PixelInfo * | target, | ||
const Quantum | opacity, | ||
const MagickBooleanType | invert, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1061 of file paint.c.
References AcquireAuthenticCacheView(), _Image::alpha_trait, _Image::columns, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), IsEventLogging(), IsFuzzyEquivalencePixelInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlphaChannel, _Image::progress_monitor, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, TransparentPaintImageTag, and UndefinedPixelTrait.
MagickExport MagickBooleanType TransparentPaintImageChroma | ( | Image * | image, |
const PixelInfo * | low, | ||
const PixelInfo * | high, | ||
const Quantum | opacity, | ||
const MagickBooleanType | invert, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1192 of file paint.c.
References AcquireAuthenticCacheView(), _Image::alpha_trait, _PixelInfo::blue, _Image::columns, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), _PixelInfo::green, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlphaChannel, _Image::progress_monitor, _PixelInfo::red, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, TransparentPaintImageTag, and UndefinedPixelTrait.