MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/annotate.h"
#include "MagickCore/artifact.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/draw.h"
#include "MagickCore/draw-private.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory-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/property.h"
#include "MagickCore/resample.h"
#include "MagickCore/resample-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/transform-private.h"
#include "MagickCore/utility.h"
Go to the source code of this file.
Data Structures | |
struct | _EdgeInfo |
struct | _ElementInfo |
struct | _MVGInfo |
struct | _PolygonInfo |
struct | _PathInfo |
Macros | |
#define | BezierQuantum 200 |
#define | PrimitiveExtentPad 4296.0 |
#define | MaxBezierCoordinates 67108864 |
#define | ThrowPointExpectedException(token, exception) |
#define | DrawCompareEdge(p, q) |
#define | RenderImageTag "Render/Image" |
#define | MaxStrokePad (6*BezierQuantum+360) |
#define | CheckPathExtent(pad_p, pad_q) |
Typedefs | |
typedef struct _EdgeInfo | EdgeInfo |
typedef struct _ElementInfo | ElementInfo |
typedef struct _MVGInfo | MVGInfo |
typedef struct _PolygonInfo | PolygonInfo |
typedef struct _PathInfo | PathInfo |
Enumerations | |
enum | PathInfoCode { MoveToCode , OpenCode , GhostlineCode , LineToCode , EndCode } |
#define CheckPathExtent | ( | pad_p, | |
pad_q | |||
) |
#define DrawCompareEdge | ( | p, | |
q | |||
) |
#define MaxStrokePad (6*BezierQuantum+360) |
#define RenderImageTag "Render/Image" |
#define ThrowPointExpectedException | ( | token, | |
exception | |||
) |
typedef struct _ElementInfo ElementInfo |
typedef struct _PolygonInfo PolygonInfo |
enum PathInfoCode |
MagickExport DrawInfo * AcquireDrawInfo | ( | void | ) |
Definition at line 231 of file draw.c.
References AcquireCriticalMemory(), and GetDrawInfo().
Referenced by GradientImage().
|
static |
Definition at line 4640 of file draw.c.
References AcquireQuantumMemory(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), DestroyPolygonTLS(), GetMagickModule, GetMagickResourceLimit(), magick_restrict, RelinquishMagickMemory(), ResourceLimitError, ThreadResource, and ThrowMagickException().
Referenced by DrawPolygonPrimitive().
|
static |
Definition at line 1044 of file draw.c.
References _Image::columns, MagickEpsilon, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sx, _AffineMatrix::sy, _AffineMatrix::tx, _AffineMatrix::ty, _SegmentInfo::x1, _SegmentInfo::x2, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawAffineImage().
|
static |
Definition at line 2263 of file draw.c.
References AcquireCriticalMemory(), _MVGInfo::exception, _MVGInfo::extent, GetMagickModule, ImagePrimitive, IsNaN, MAGICK_SSIZE_MAX, MagickFalse, MagickTrue, _MVGInfo::offset, _MVGInfo::primitive_info, PrimitiveExtentPad, ResizeQuantumMemory(), ResourceLimitError, TextPrimitive, ThrowMagickException(), and UndefinedPrimitive.
Referenced by RenderMVGContent(), TraceBezier(), TraceEllipse(), TracePath(), and TraceRoundRectangle().
MagickExport DrawInfo * CloneDrawInfo | ( | const ImageInfo * | image_info, |
const DrawInfo * | draw_info | ||
) |
Definition at line 268 of file draw.c.
References AcquireCriticalMemory(), AcquireExceptionInfo(), AcquireQuantumMemory(), _DrawInfo::affine, _DrawInfo::align, _DrawInfo::border_color, _DrawInfo::bounds, _DrawInfo::clip_mask, _DrawInfo::clip_path, _DrawInfo::clip_units, _DrawInfo::clipping_mask, CloneImage(), CloneString(), _DrawInfo::compliance, _DrawInfo::compose, _DrawInfo::composite_mask, _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _DrawInfo::debug, _DrawInfo::decorate, _DrawInfo::density, DestroyExceptionInfo(), _DrawInfo::direction, _DrawInfo::element_reference, _DrawInfo::encoding, _DrawInfo::family, _DrawInfo::fill, _DrawInfo::fill_alpha, _DrawInfo::fill_pattern, _DrawInfo::fill_rule, _DrawInfo::font, _DrawInfo::geometry, GetDrawInfo(), _DrawInfo::gradient, _DrawInfo::gravity, _DrawInfo::id, _DrawInfo::interline_spacing, _DrawInfo::interword_spacing, _DrawInfo::kerning, _DrawInfo::linecap, _DrawInfo::linejoin, MagickEpsilon, MagickTrue, _DrawInfo::metrics, _DrawInfo::miterlimit, _GradientInfo::number_stops, _DrawInfo::pointsize, _DrawInfo::primitive, _DrawInfo::render, ResourceLimitFatalError, _DrawInfo::server_name, _GradientInfo::stops, _DrawInfo::stretch, _DrawInfo::stroke, _DrawInfo::stroke_alpha, _DrawInfo::stroke_antialias, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, _DrawInfo::style, _DrawInfo::text, _DrawInfo::text_antialias, ThrowFatalException, _DrawInfo::undercolor, _DrawInfo::viewbox, and _DrawInfo::weight.
Referenced by AnnotateImage(), DrawBoundingRectangles(), DrawClippingMask(), DrawCompositeMask(), DrawDashPolygon(), DrawPatternPath(), DrawPrimitive(), DrawStrokePolygon(), GetMultilineTypeMetrics(), GetTypeMetrics(), MontageImageList(), PolaroidImage(), RenderHoughLines(), RenderMVGContent(), RenderType(), and VignetteImage().
|
static |
Definition at line 4676 of file draw.c.
References AcquireMagickMemory(), AcquireQuantumMemory(), _PolygonInfo::edges, GetMagickModule, MagickFalse, MagickTrue, _PolygonInfo::number_edges, _EdgeInfo::number_points, _EdgeInfo::points, ResourceLimitError, and ThrowMagickException().
Referenced by DrawPolygonPrimitive().
|
static |
Definition at line 515 of file draw.c.
References AcquireMagickMemory(), AcquireQuantumMemory(), _EdgeInfo::bounds, _PathInfo::code, DestroyPolygonInfo(), _EdgeInfo::direction, DrawCompareEdges(), DrawEvent, _PolygonInfo::edges, EndCode, GetLogEventMask(), GetMagickModule, _EdgeInfo::ghostline, GhostlineCode, _EdgeInfo::highwater, LogPolygonInfo(), MagickEpsilon, MagickFalse, MagickTrue, MoveToCode, _PolygonInfo::number_edges, _EdgeInfo::number_points, OpenCode, _PathInfo::point, _EdgeInfo::points, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, ReversePoints(), _EdgeInfo::scanline, ThrowMagickException(), _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by AcquirePolygonTLS().
|
static |
Definition at line 833 of file draw.c.
References AcquireQuantumMemory(), AlphaPrimitive, _PrimitiveInfo::closed_subpath, _PathInfo::code, ColorPrimitive, EndCode, GetMagickModule, GhostlineCode, ImagePrimitive, IsEventLogging(), LineToCode, LogPathInfo(), MagickEpsilon, MagickFalse, MoveToCode, OpenCode, _PathInfo::point, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, ResizeQuantumMemory(), ResourceLimitError, TextPrimitive, ThrowMagickException(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by AcquirePolygonTLS().
MagickExport DrawInfo * DestroyDrawInfo | ( | DrawInfo * | draw_info | ) |
Definition at line 965 of file draw.c.
References _DrawInfo::clip_mask, _DrawInfo::clipping_mask, _DrawInfo::composite_mask, _DrawInfo::dash_pattern, _DrawInfo::density, DestroyImage(), DestroyString(), _DrawInfo::encoding, _DrawInfo::family, _DrawInfo::fill_pattern, _DrawInfo::font, _DrawInfo::geometry, GetMagickModule, _DrawInfo::gradient, _DrawInfo::id, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _DrawInfo::metrics, _DrawInfo::primitive, RelinquishMagickMemory(), _DrawInfo::server_name, _DrawInfo::signature, _GradientInfo::stops, _DrawInfo::stroke_pattern, _DrawInfo::text, and TraceEvent.
Referenced by AnnotateImage(), DrawBoundingRectangles(), DrawClippingMask(), DrawCompositeMask(), DrawDashPolygon(), DrawPatternPath(), DrawPrimitive(), DrawStrokePolygon(), GetMultilineTypeMetrics(), GetTypeMetrics(), GradientImage(), MontageImageList(), PolaroidImage(), RenderHoughLines(), RenderMVGContent(), RenderType(), and VignetteImage().
|
static |
Definition at line 4731 of file draw.c.
References _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by GetFillAlpha().
|
static |
Definition at line 417 of file draw.c.
References _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by ConvertPathToPolygon(), and DestroyPolygonTLS().
|
static |
Definition at line 4627 of file draw.c.
References DestroyPolygonInfo(), GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquirePolygonTLS(), and DrawPolygonPrimitive().
MagickExport MagickBooleanType DrawAffineImage | ( | Image * | image, |
const Image * | source, | ||
const AffineMatrix * | affine, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1151 of file draw.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AffineEdge(), _PixelInfo::alpha, CastDoubleToLong(), _Image::columns, CompositePixelInfoOver(), DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), InterpolatePixelInfo(), InverseAffineMatrix(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMax, MagickMin, MagickTrue, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageStorageClass(), SetPixelViaPixelInfo(), _Image::signature, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), TraceEvent, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedInterpolatePixel, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPrimitive().
|
static |
Definition at line 1335 of file draw.c.
References _DrawInfo::affine, AllCompliance, _EdgeInfo::bounds, CloneDrawInfo(), _Image::columns, _DrawInfo::density, DestroyDrawInfo(), _EdgeInfo::direction, DrawPrimitive(), _PolygonInfo::edges, ExpandAffine(), _DrawInfo::fill, MagickFalse, MagickTrue, _PrimitiveInfo::method, _PolygonInfo::number_edges, ParseGeometry(), _PrimitiveInfo::primitive, QueryColorCompliance(), RectanglePrimitive, ReplaceMethod, _GeometryInfo::rho, RhoValue, _Image::rows, _GeometryInfo::sigma, SigmaValue, _DrawInfo::stroke, _DrawInfo::stroke_width, TraceRectangle(), UndefinedPrimitive, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPolygonPrimitive().
MagickExport MagickBooleanType DrawClipPath | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const char * | id, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1502 of file draw.c.
References _DrawInfo::clip_mask, DestroyImage(), DrawClippingMask(), GetImageArtifact(), MagickFalse, SetImageMask(), and WritePixelMask.
Referenced by RenderMVGContent().
|
static |
Definition at line 1558 of file draw.c.
References AcquireImage(), AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, _PixelInfo::alpha_trait, AlphaChannel, _Image::background_color, BlendPixelTrait, _DrawInfo::clip_mask, _DrawInfo::clip_path, CloneDrawInfo(), CloneString(), _Image::columns, _DrawInfo::debug, DestroyDrawInfo(), DestroyImage(), DestroyString(), DrawEvent, _Image::filename, _DrawInfo::fill, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NegateImage(), OpaqueAlpha, _DrawInfo::primitive, QueryColorCompliance(), RenderMVGContent(), _Image::rows, SeparateImage(), SetImageBackgroundColor(), SetImageExtent(), SetImageMask(), _Image::signature, _DrawInfo::stroke, _DrawInfo::stroke_width, TraceEvent, TransparentAlpha, and WritePixelMask.
Referenced by DrawClipPath(), and RenderMVGContent().
|
static |
Definition at line 437 of file draw.c.
References DrawCompareEdge.
Referenced by ConvertPathToPolygon().
|
static |
Definition at line 1652 of file draw.c.
References AcquireImage(), AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, _PixelInfo::alpha_trait, AlphaChannel, _Image::background_color, BlendPixelTrait, CloneDrawInfo(), CloneString(), _Image::columns, CompositePixelMask, _DrawInfo::debug, DestroyDrawInfo(), DestroyImage(), DrawEvent, _Image::filename, _DrawInfo::fill, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, NegateImage(), OpaqueAlpha, _DrawInfo::primitive, QueryColorCompliance(), RenderMVGContent(), _Image::rows, SeparateImage(), SetImageBackgroundColor(), SetImageExtent(), SetImageMask(), _Image::signature, _DrawInfo::stroke, _DrawInfo::stroke_width, TraceEvent, and TransparentAlpha.
Referenced by RenderMVGContent().
|
static |
Definition at line 1744 of file draw.c.
References AcquireQuantumMemory(), _DrawInfo::affine, CloneDrawInfo(), _PrimitiveInfo::coordinates, _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _DrawInfo::debug, DestroyDrawInfo(), DrawEvent, DrawStrokePolygon(), ExpandAffine(), GetMagickModule, LogMagickEvent(), MagickEpsilon, MagickFalse, MagickTrue, MaxBezierCoordinates, _DrawInfo::miterlimit, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), ResourceLimitError, ThrowMagickException(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
MagickExport MagickBooleanType DrawGradientImage | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1999 of file draw.c.
References AcquireAuthenticCacheView(), _GradientInfo::bounding_box, CastDoubleToLong(), _StopInfo::color, _Image::columns, CompositePixelInfoBlend(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelInfo(), GetPixelInfoPixel(), GetStopColorOffset(), _DrawInfo::gradient, _GradientInfo::gradient_vector, _RectangleInfo::height, IsEventLogging(), LinearGradient, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _GradientInfo::number_stops, _StopInfo::offset, PadSpread, PerceptibleReciprocal(), RadialGradient, _GradientInfo::radius, ReflectSpread, RepeatSpread, _Image::signature, _GradientInfo::spread, StopInfoCompare(), _GradientInfo::stops, TraceEvent, _GradientInfo::type, UndefinedSpread, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _RectangleInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by GradientImage().
MagickExport MagickBooleanType DrawImage | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4494 of file draw.c.
References RenderMVGContent().
Referenced by AnnotateImage(), RenderHoughLines(), and VignetteImage().
MagickExport MagickBooleanType DrawPatternPath | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const char * | name, | ||
Image ** | pattern, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4531 of file draw.c.
References AcquireImage(), AcquireImageInfo(), AcquireString(), AllCompliance, CloneDrawInfo(), CloneString(), _DrawInfo::debug, DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DrawEvent, _Image::filename, _DrawInfo::fill_pattern, FormatLocaleString(), GetImageArtifact(), GetMagickModule, _DrawInfo::gradient, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickGradientOptions, MagickPathExtent, ParseCommandOption(), _DrawInfo::primitive, QueryColorCompliance(), RenderMVGContent(), SetImageBackgroundColor(), _Image::signature, _ImageInfo::size, _DrawInfo::stroke_pattern, TraceEvent, and _GradientInfo::type.
Referenced by RenderMVGContent().
|
static |
Definition at line 4922 of file draw.c.
References AcquireAuthenticCacheView(), AcquirePolygonTLS(), _DrawInfo::affine, _PixelInfo::alpha, _EdgeInfo::bounds, CastDoubleToLong(), ClonePolygonEdgesTLS(), _Image::columns, CompositePixelOver(), _PrimitiveInfo::coordinates, _DrawInfo::debug, DestroyCacheView(), DestroyPolygonTLS(), DrawBoundingRectangles(), DrawEvent, ExpandAffine(), _Image::filename, _DrawInfo::fill_rule, FillToBorderMethod, FloodfillMethod, GetCacheViewAuthenticPixels(), GetFillAlpha(), GetFillColor(), GetImageArtifact(), GetMagickModule, GetMagickNumberThreads(), GetOpenMPThreadId(), GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetStrokeColor(), IsEventLogging(), IsStringTrue(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _PrimitiveInfo::method, _PrimitiveInfo::point, _Image::rows, SetPixelViaPixelInfo(), _DrawInfo::signature, _Image::signature, _DrawInfo::stroke_antialias, _DrawInfo::stroke_width, SyncCacheViewAuthenticPixels(), TraceEvent, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPrimitive(), DrawRoundLinecap(), and DrawStrokePolygon().
MagickExport MagickBooleanType DrawPrimitive | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const PrimitiveInfo * | primitive_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 5286 of file draw.c.
References AcquireAuthenticCacheView(), AcquireImageInfo(), _DrawInfo::affine, _DrawInfo::alpha, _PixelInfo::alpha, _Image::alpha_trait, AlphaChannel, AlphaPrimitive, AnnotateImage(), _PixelInfo::blue, _DrawInfo::border_color, CastDoubleToLong(), ClampToQuantum(), _DrawInfo::clipping_mask, CloneDrawInfo(), CloneString(), _PrimitiveInfo::closed_subpath, ColorPrimitive, _Image::colorspace, _Image::columns, _DrawInfo::compliance, _DrawInfo::compose, _DrawInfo::composite_mask, CompositeImage(), CompositePixelMask, CompositePixelOver(), CopyMagickString(), _DrawInfo::dash_pattern, _DrawInfo::debug, DestroyCacheView(), DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DestroyImageList(), DestroyString(), DrawAffineImage(), DrawDashPolygon(), DrawEvent, DrawPolygonPrimitive(), DrawStrokePolygon(), ExpandAffine(), _ImageInfo::extract, _ImageInfo::filename, FileOpenError, _DrawInfo::fill, FillToBorderMethod, _Image::filter, FloodfillMethod, FloodfillPaintImage(), FormatLocaleString(), _DrawInfo::geometry, GetCacheViewAuthenticPixels(), GetFillColor(), GetMagickModule, GetOneCacheViewVirtualPixelInfo(), GetOneVirtualPixelInfo(), GetPathAttributes(), GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), _DrawInfo::gravity, _Image::gravity, _PixelInfo::green, ImagePrimitive, _Image::interpolate, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), IsGrayColorspace(), IsPixelInfoGray(), _DrawInfo::linecap, _DrawInfo::linejoin, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), LogPrimitiveInfo(), _ImageInfo::magick, magick_restrict, MagickEpsilon, MagickFalse, MagickPathExtent, MagickTrue, _PrimitiveInfo::method, OpaqueAlpha, OpaqueAlphaChannel, OverCompositeOp, ParseGravityGeometry(), _PrimitiveInfo::point, PointMethod, PointPrimitive, _PrimitiveInfo::primitive, ReadImage(), ReadInlineImage(), _PixelInfo::red, RemoveFirstImageFromList(), ReplaceMethod, ResetMethod, RoundCap, RoundJoin, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetGeometry(), SetImageAlpha(), SetImageAlphaChannel(), SetImageChannelMask(), SetImageColorspace(), SetImageInfo(), SetImageMask(), SetImageProgressMonitor(), SetPixelAlpha(), SetPixelViaPixelInfo(), _ImageInfo::size, SrcOverCompositeOp, sRGBColorspace, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, SVGCompliance, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _PrimitiveInfo::text, TextPrimitive, ThrowMagickException(), TileVirtualPixelMethod, TransformImage(), TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedPixelTrait, UndefinedPrimitive, WritePixelMask, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by DrawBoundingRectangles(), and RenderMVGContent().
|
static |
Definition at line 5821 of file draw.c.
References _PrimitiveInfo::coordinates, DrawPolygonPrimitive(), MagickEpsilon, _PrimitiveInfo::point, _PrimitiveInfo::primitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().
|
static |
Definition at line 5842 of file draw.c.
References _PixelInfo::alpha, CloneDrawInfo(), CloneImage(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, _DrawInfo::debug, DestroyDrawInfo(), DestroyImage(), DrawEvent, DrawPolygonPrimitive(), DrawRoundLinecap(), _DrawInfo::fill, _DrawInfo::fill_pattern, _DrawInfo::fill_rule, GetMagickModule, _DrawInfo::linecap, LogMagickEvent(), MagickFalse, MagickTrue, NonZeroRule, _PrimitiveInfo::primitive, RelinquishMagickMemory(), RoundCap, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, TraceStrokePolygon(), TransparentAlpha, and UndefinedPrimitive.
Referenced by DrawDashPolygon(), and DrawPrimitive().
MagickExport void GetAffineMatrix | ( | AffineMatrix * | affine_matrix | ) |
Definition at line 5931 of file draw.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickFalse, _AffineMatrix::sx, _AffineMatrix::sy, and TraceEvent.
Referenced by GetDrawInfo(), ParseAffineGeometry(), and RenderMVGContent().
MagickExport void GetDrawInfo | ( | const ImageInfo * | image_info, |
DrawInfo * | draw_info | ||
) |
Definition at line 5965 of file draw.c.
References AcquireExceptionInfo(), AcquireString(), _DrawInfo::affine, AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, AnnotateEvent, _ImageInfo::antialias, _DrawInfo::border_color, _ImageInfo::border_color, ButtCap, _DrawInfo::clip_path, CloneImageInfo(), CloneString(), _DrawInfo::compose, _DrawInfo::debug, _DrawInfo::decorate, _DrawInfo::density, _ImageInfo::density, DestroyExceptionInfo(), DestroyImageInfo(), _DrawInfo::direction, DrawEvent, _DrawInfo::encoding, EvenOddRule, _DrawInfo::family, _DrawInfo::fill, _DrawInfo::fill_alpha, _DrawInfo::fill_rule, _DrawInfo::font, _ImageInfo::font, GetAffineMatrix(), GetDrawValue(), GetImageOption(), GetLogEventMask(), GetMagickModule, _DrawInfo::gravity, _DrawInfo::interline_spacing, _DrawInfo::interword_spacing, IsEventLogging(), _DrawInfo::kerning, _DrawInfo::linecap, _DrawInfo::linejoin, LogMagickEvent(), MagickCoreSignature, MagickDirectionOptions, MagickEpsilon, MagickFalse, MagickGravityOptions, MagickStyleOptions, MagickTrue, MagickWeightOptions, MiterJoin, _DrawInfo::miterlimit, NoDecoration, OpaqueAlpha, OverCompositeOp, ParseCommandOption(), _DrawInfo::pointsize, _ImageInfo::pointsize, QueryColorCompliance(), _DrawInfo::render, _DrawInfo::server_name, _ImageInfo::server_name, _DrawInfo::signature, StringToUnsignedLong(), _DrawInfo::stroke, _DrawInfo::stroke_alpha, _DrawInfo::stroke_antialias, _DrawInfo::stroke_width, _DrawInfo::style, _DrawInfo::text_antialias, TraceEvent, TransparentAlpha, UndefinedDirection, _DrawInfo::undercolor, and _DrawInfo::weight.
Referenced by AcquireDrawInfo(), and CloneDrawInfo().
|
inlinestatic |
Definition at line 2319 of file draw.c.
References InterpretLocaleValue(), and magick_restrict.
Referenced by GetDrawInfo(), IsPoint(), RenderMVGContent(), and TracePath().
|
static |
Definition at line 4743 of file draw.c.
References _EdgeInfo::bounds, DestroyEdge(), _EdgeInfo::direction, _PolygonInfo::edges, _EdgeInfo::ghostline, _EdgeInfo::highwater, MagickAbsoluteValue, MagickEpsilon, MagickFalse, MagickMax, NonZeroRule, _PolygonInfo::number_edges, _EdgeInfo::number_points, PerceptibleReciprocal(), _EdgeInfo::points, _EdgeInfo::scanline, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPolygonPrimitive().
|
static |
Definition at line 2345 of file draw.c.
References AcquireString(), AddValueToSplayTree(), ConstantString(), CopyMagickString(), DestroyString(), GetNextToken(), LocaleCompare(), MagickPathExtent, MVGMacroCompare(), NewSplayTree(), and RelinquishMagickMemory().
Referenced by RenderMVGContent().
|
inlinestatic |
Definition at line 1928 of file draw.c.
References _GradientInfo::angle, _GradientInfo::center, DegreesToRadians(), _GradientInfo::gradient_vector, LinearGradient, PerceptibleReciprocal(), RadialGradient, _GradientInfo::radii, RepeatSpread, _GradientInfo::spread, _GradientInfo::type, UndefinedGradient, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawGradientImage().
|
static |
Definition at line 1130 of file draw.c.
References PerceptibleReciprocal(), _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sx, _AffineMatrix::sy, _AffineMatrix::tx, and _AffineMatrix::ty.
Referenced by DrawAffineImage().
|
inlinestatic |
Definition at line 2435 of file draw.c.
References GetDrawValue(), MagickEpsilon, MagickFalse, and MagickTrue.
Referenced by RenderMVGContent(), and TracePath().
|
static |
Definition at line 818 of file draw.c.
References _PathInfo::code, DrawEvent, EndCode, GetMagickModule, GhostlineCode, LineToCode, LogMagickEvent(), MoveToCode, OpenCode, _PathInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by ConvertPrimitiveToPath().
|
static |
Definition at line 469 of file draw.c.
References _EdgeInfo::bounds, _EdgeInfo::direction, DrawEvent, _PolygonInfo::edges, GetMagickModule, _EdgeInfo::ghostline, LogMagickEvent(), MagickFalse, _PolygonInfo::number_edges, _EdgeInfo::number_points, _EdgeInfo::points, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by ConvertPathToPolygon().
|
static |
Definition at line 5184 of file draw.c.
References AlphaPrimitive, CastDoubleToLong(), ColorPrimitive, DrawEvent, GetMagickModule, ImagePrimitive, LogMagickEvent(), MagickEpsilon, _PrimitiveInfo::method, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, TextPrimitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
|
static |
Definition at line 2334 of file draw.c.
Referenced by GetMVGMacros().
|
inlinestatic |
Definition at line 6105 of file draw.c.
Referenced by TraceBezier().
static MagickBooleanType RenderMVGContent | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2457 of file draw.c.
References AcquireMagickMemory(), AcquireQuantumMemory(), AcquireString(), _DrawInfo::affine, _DrawInfo::align, AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, AlphaPrimitive, ArcPrimitive, BezierPrimitive, BezierQuantum, BlendPixelTrait, _DrawInfo::bounds, CastDoubleToLong(), CheckPrimitiveExtent(), CirclePrimitive, ClampToQuantum(), _DrawInfo::clip_units, _DrawInfo::clipping_mask, CloneDrawInfo(), CloneString(), _PrimitiveInfo::closed_subpath, _StopInfo::color, ColorPrimitive, _Image::columns, _DrawInfo::compliance, _DrawInfo::compose, _DrawInfo::composite_mask, CompositePixelMask, ConcatenateString(), _PrimitiveInfo::coordinates, CopyMagickString(), _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _DrawInfo::debug, _DrawInfo::decorate, DegreesToRadians(), DestroyDrawInfo(), DestroyImage(), DestroySplayTree(), DestroyString(), DirectClass, _DrawInfo::direction, DrawClipPath(), DrawClippingMask(), DrawCompositeMask(), DrawError, DrawEvent, DrawPatternPath(), DrawPrimitive(), EllipsePrimitive, _MVGInfo::exception, ExpandAffine(), _MVGInfo::extent, _Image::filename, FileToString(), _DrawInfo::fill, _DrawInfo::fill_alpha, _DrawInfo::fill_rule, FloodfillMethod, FormatLocaleString(), GetAffineMatrix(), GetDrawValue(), GetImageArtifact(), GetMagickModule, GetMVGMacros(), GetNextToken(), GetTypeMetrics(), GetValueFromSplayTree(), _DrawInfo::gradient, GradientImage(), _DrawInfo::gravity, _RectangleInfo::height, ImagePrimitive, _DrawInfo::interline_spacing, _DrawInfo::interword_spacing, IsEventLogging(), IsPoint(), _DrawInfo::kerning, LinearGradient, _DrawInfo::linecap, _DrawInfo::linejoin, LinePrimitive, LocaleCompare(), LogMagickEvent(), MagickAlignOptions, MagickClipPathOptions, MagickComplianceOptions, MagickComposeOptions, MagickCoreSignature, MagickDecorateOptions, MagickDirectionOptions, MagickEpsilon, MagickFalse, MagickFillRuleOptions, MagickGravityOptions, MagickLineCapOptions, MagickLineJoinOptions, MagickMax, MagickMaxRecursionDepth, MagickMethodOptions, MagickMin, MagickPathExtent, MagickPI, MagickStretchOptions, MagickStyleOptions, MagickTrue, MagickWeightOptions, MaxBezierCoordinates, _PrimitiveInfo::method, _DrawInfo::miterlimit, ObjectBoundingBox, _MVGInfo::offset, _StopInfo::offset, OpaqueAlpha, OpaqueAlphaChannel, PadSpread, _Image::page, ParseCommandOption(), PathPrimitive, _MVGInfo::point, _PrimitiveInfo::point, PointPrimitive, _DrawInfo::pointsize, PolygonPrimitive, PolylinePrimitive, _DrawInfo::primitive, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, PrimitiveExtentPad, QuantumRange, QueryColorCompliance(), RadialGradient, RectanglePrimitive, RelinquishMagickMemory(), _DrawInfo::render, RenderImageTag, RenderMVGContent(), ResizeQuantumMemory(), ResourceLimitError, ResourceLimitFatalError, RoundRectanglePrimitive, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageAlphaChannel(), SetImageArtifact(), SetImageMask(), SetImageProgress(), SetImageStorageClass(), _DrawInfo::signature, _Image::signature, _DrawInfo::stretch, StringToLong(), StringToUnsignedLong(), _DrawInfo::stroke, _DrawInfo::stroke_alpha, _DrawInfo::stroke_antialias, _DrawInfo::stroke_width, _DrawInfo::style, SVGCompliance, _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, _PrimitiveInfo::text, _DrawInfo::text_antialias, TextPrimitive, ThrowBinaryException, ThrowFatalException, ThrowMagickException(), ThrowPointExpectedException, TraceArc(), TraceBezier(), TraceCircle(), TraceEllipse(), TraceEvent, TraceLine(), TracePath(), TracePoint(), TraceRectangle(), TraceRoundRectangle(), TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, _GradientInfo::type, UndefinedPixelTrait, UndefinedPrimitive, _DrawInfo::viewbox, _DrawInfo::weight, _TypeMetric::width, _RectangleInfo::width, WritePixelMask, _PointInfo::x, _RectangleInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _RectangleInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawClippingMask(), DrawCompositeMask(), DrawImage(), DrawPatternPath(), and RenderMVGContent().
|
static |
Definition at line 499 of file draw.c.
Referenced by ConvertPathToPolygon().
|
static |
Definition at line 1984 of file draw.c.
References MagickEpsilon, and _StopInfo::offset.
Referenced by DrawGradientImage().
static MagickBooleanType TraceArc | ( | MVGInfo * | mvg_info, |
const PointInfo | start, | ||
const PointInfo | end, | ||
const PointInfo | degrees | ||
) |
Definition at line 6137 of file draw.c.
References TraceEllipse(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent().
static MagickBooleanType TraceArcPath | ( | MVGInfo * | mvg_info, |
const PointInfo | start, | ||
const PointInfo | end, | ||
const PointInfo | arc, | ||
const double | angle, | ||
const MagickBooleanType | large_arc, | ||
const MagickBooleanType | sweep | ||
) |
Definition at line 6151 of file draw.c.
References CastDoubleToLong(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, DegreesToRadians(), MagickEpsilon, MagickFalse, MagickPI, MagickTrue, _MVGInfo::offset, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, TraceBezier(), TraceLine(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by TracePath().
static MagickBooleanType TraceBezier | ( | MVGInfo * | mvg_info, |
const size_t | number_coordinates | ||
) |
Definition at line 6300 of file draw.c.
References AcquireQuantumMemory(), BezierQuantum, CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, _MVGInfo::exception, GetMagickModule, MAGICK_SSIZE_MAX, MagickFalse, MagickMin, MagickTrue, _MVGInfo::offset, Permutate(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, RelinquishMagickMemory(), ResourceLimitError, ThrowMagickException(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent(), TraceArcPath(), and TracePath().
static MagickBooleanType TraceCircle | ( | MVGInfo * | mvg_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
Definition at line 6436 of file draw.c.
References TraceEllipse(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent().
static MagickBooleanType TraceEllipse | ( | MVGInfo * | mvg_info, |
const PointInfo | center, | ||
const PointInfo | radii, | ||
const PointInfo | arc | ||
) |
Definition at line 6458 of file draw.c.
References CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, DegreesToRadians(), MagickEpsilon, MagickFalse, MagickMax, MagickPI, MagickTrue, _MVGInfo::offset, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent(), TraceArc(), TraceCircle(), and TraceRoundRectangle().
static MagickBooleanType TraceLine | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
Definition at line 6530 of file draw.c.
References _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, MagickEpsilon, MagickFalse, MagickTrue, PointPrimitive, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent(), and TraceArcPath().
|
static |
Definition at line 6550 of file draw.c.
References CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, FillToBorderMethod, GetDrawValue(), GetNextToken(), IsPoint(), MagickFalse, MagickPathExtent, MagickTrue, _PrimitiveInfo::method, _MVGInfo::offset, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, PrimitiveExtentPad, StringToLong(), ThrowPointExpectedException, TraceArcPath(), TraceBezier(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent().
|
inlinestatic |
Definition at line 2448 of file draw.c.
References _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, MagickFalse, MagickTrue, and _PrimitiveInfo::point.
Referenced by RenderMVGContent(), TraceArcPath(), TraceBezier(), TraceEllipse(), TraceLine(), TracePath(), TraceRectangle(), and TraceRoundRectangle().
static MagickBooleanType TraceRectangle | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
Definition at line 7064 of file draw.c.
References _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, MagickFalse, MagickTrue, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawBoundingRectangles(), and RenderMVGContent().
static MagickBooleanType TraceRoundRectangle | ( | MVGInfo * | mvg_info, |
const PointInfo | start, | ||
const PointInfo | end, | ||
PointInfo | arc | ||
) |
Definition at line 7106 of file draw.c.
References CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, MagickEpsilon, MagickFalse, MagickTrue, _MVGInfo::offset, _PrimitiveInfo::point, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, PrimitiveExtentPad, TraceEllipse(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent().
static MagickBooleanType TraceSquareLinecap | ( | PrimitiveInfo * | primitive_info, |
const size_t | number_vertices, | ||
const double | offset | ||
) |
Definition at line 7188 of file draw.c.
References MagickEpsilon, MagickTrue, _PrimitiveInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by TraceStrokePolygon().
|
static |
Definition at line 7237 of file draw.c.
References AcquireCriticalMemory(), AcquireQuantumMemory(), _DrawInfo::affine, BevelJoin, CastDoubleToLong(), CheckPathExtent, _PrimitiveInfo::coordinates, DegreesToRadians(), DisableMSCWarning, ExpandAffine(), GetMagickModule, _DrawInfo::linecap, _DrawInfo::linejoin, MagickEpsilon, MagickFalse, MagickPI, MagickTrue, MaxStrokePad, MiterJoin, _DrawInfo::miterlimit, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), ResourceLimitError, RestoreMSCWarning, RoundCap, RoundJoin, SquareCap, _DrawInfo::stroke_width, ThrowMagickException(), TraceSquareLinecap(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().