#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/pixel-private.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"
Data Structures | |
struct | _EdgeInfo |
struct | _ElementInfo |
struct | _MVGInfo |
struct | _PolygonInfo |
struct | _PathInfo |
Defines | |
#define | BezierQuantum 200 |
#define | PrimitiveExtentPad 2048 |
#define | MaxBezierCoordinates 6291456 |
#define | ThrowPointExpectedException(token, exception) |
#define | DrawCompareEdge(p, q) |
#define | RenderImageTag "Render/Image" |
#define | CheckPathExtent(pad) |
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 } |
Functions | |
static Image * | DrawClippingMask (Image *, const DrawInfo *, const char *, const char *, ExceptionInfo *) |
static MagickBooleanType | DrawStrokePolygon (Image *, const DrawInfo *, const PrimitiveInfo *, ExceptionInfo *) |
static MagickBooleanType | RenderMVGContent (Image *, const DrawInfo *, const size_t, ExceptionInfo *) |
static MagickBooleanType | TraceArc (MVGInfo *, const PointInfo, const PointInfo, const PointInfo) |
static MagickBooleanType | TraceArcPath (MVGInfo *, const PointInfo, const PointInfo, const PointInfo, const double, const MagickBooleanType, const MagickBooleanType) |
static MagickBooleanType | TraceBezier (MVGInfo *, const size_t) |
static MagickBooleanType | TraceCircle (MVGInfo *, const PointInfo, const PointInfo) |
static MagickBooleanType | TraceEllipse (MVGInfo *, const PointInfo, const PointInfo, const PointInfo) |
static MagickBooleanType | TraceLine (PrimitiveInfo *, const PointInfo, const PointInfo) |
static MagickBooleanType | TraceRectangle (PrimitiveInfo *, const PointInfo, const PointInfo) |
static MagickBooleanType | TraceRoundRectangle (MVGInfo *, const PointInfo, const PointInfo, PointInfo) |
static MagickBooleanType | TraceSquareLinecap (PrimitiveInfo *, const size_t, const double) |
static PrimitiveInfo * | TraceStrokePolygon (const Image *, const DrawInfo *, const PrimitiveInfo *) |
static size_t | TracePath (MVGInfo *, const char *, ExceptionInfo *) |
MagickExport DrawInfo * | AcquireDrawInfo (void) |
MagickExport DrawInfo * | CloneDrawInfo (const ImageInfo *image_info, const DrawInfo *draw_info) |
static int | DrawCompareEdges (const void *p_edge, const void *q_edge) |
static void | LogPolygonInfo (const PolygonInfo *polygon_info) |
static void | ReversePoints (PointInfo *points, const size_t number_points) |
static PolygonInfo * | ConvertPathToPolygon (const PathInfo *path_info) |
static void | LogPathInfo (const PathInfo *path_info) |
static PathInfo * | ConvertPrimitiveToPath (const PrimitiveInfo *primitive_info) |
MagickExport DrawInfo * | DestroyDrawInfo (DrawInfo *draw_info) |
static size_t | DestroyEdge (PolygonInfo *polygon_info, const size_t edge) |
static PolygonInfo * | DestroyPolygonInfo (PolygonInfo *polygon_info) |
static SegmentInfo | AffineEdge (const Image *image, const AffineMatrix *affine, const double y, const SegmentInfo *edge) |
static AffineMatrix | InverseAffineMatrix (const AffineMatrix *affine) |
MagickExport MagickBooleanType | DrawAffineImage (Image *image, const Image *source, const AffineMatrix *affine, ExceptionInfo *exception) |
static double | SaneStrokeWidth (const Image *image, const DrawInfo *draw_info) |
static MagickBooleanType | DrawBoundingRectangles (Image *image, const DrawInfo *draw_info, const PolygonInfo *polygon_info, ExceptionInfo *exception) |
MagickExport MagickBooleanType | DrawClipPath (Image *image, const DrawInfo *draw_info, const char *id, ExceptionInfo *exception) |
static Image * | DrawCompositeMask (Image *image, const DrawInfo *draw_info, const char *id, const char *mask_path, ExceptionInfo *exception) |
static MagickBooleanType | DrawDashPolygon (const DrawInfo *draw_info, const PrimitiveInfo *primitive_info, Image *image, ExceptionInfo *exception) |
static double | GetStopColorOffset (const GradientInfo *gradient, const ssize_t x, const ssize_t y) |
static int | StopInfoCompare (const void *x, const void *y) |
MagickExport MagickBooleanType | DrawGradientImage (Image *image, const DrawInfo *draw_info, ExceptionInfo *exception) |
static MagickBooleanType | CheckPrimitiveExtent (MVGInfo *mvg_info, const size_t pad) |
MagickExport int | MVGMacroCompare (const void *target, const void *source) |
static SplayTreeInfo * | GetMVGMacros (const char *primitive) |
static MagickBooleanType | IsPoint (const char *point) |
static MagickBooleanType | TracePoint (PrimitiveInfo *primitive_info, const PointInfo point) |
MagickExport MagickBooleanType | DrawImage (Image *image, const DrawInfo *draw_info, ExceptionInfo *exception) |
MagickExport MagickBooleanType | DrawPatternPath (Image *image, const DrawInfo *draw_info, const char *name, Image **pattern, ExceptionInfo *exception) |
static PolygonInfo ** | DestroyPolygonThreadSet (PolygonInfo **polygon_info) |
static PolygonInfo ** | AcquirePolygonThreadSet (const PrimitiveInfo *primitive_info) |
static double | GetFillAlpha (PolygonInfo *polygon_info, const double mid, const MagickBooleanType fill, const FillRule fill_rule, const ssize_t x, const ssize_t y, double *stroke_alpha) |
static MagickBooleanType | DrawPolygonPrimitive (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info, ExceptionInfo *exception) |
static double | ConstrainCoordinate (double x) |
static void | LogPrimitiveInfo (const PrimitiveInfo *primitive_info) |
MagickExport MagickBooleanType | DrawPrimitive (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info, ExceptionInfo *exception) |
static MagickBooleanType | DrawRoundLinecap (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info, ExceptionInfo *exception) |
MagickExport void | GetAffineMatrix (AffineMatrix *affine_matrix) |
MagickExport void | GetDrawInfo (const ImageInfo *image_info, DrawInfo *draw_info) |
static double | Permutate (const ssize_t n, const ssize_t k) |
#define BezierQuantum 200 |
Referenced by RenderMVGContent(), TraceBezier(), and TraceStrokePolygon().
#define CheckPathExtent | ( | pad | ) |
if ((ssize_t) (q+(pad)) >= (ssize_t) max_strokes) \ { \ if (~max_strokes < (pad)) \ { \ path_p=(PointInfo *) RelinquishMagickMemory(path_p); \ path_q=(PointInfo *) RelinquishMagickMemory(path_q); \ } \ else \ { \ max_strokes+=(pad); \ path_p=(PointInfo *) ResizeQuantumMemory(path_p,max_strokes, \ sizeof(*path_p)); \ path_q=(PointInfo *) ResizeQuantumMemory(path_q,max_strokes, \ sizeof(*path_q)); \ } \ if ((path_p == (PointInfo *) NULL) || (path_q == (PointInfo *) NULL)) \ { \ if (path_p != (PointInfo *) NULL) \ path_p=(PointInfo *) RelinquishMagickMemory(path_p); \ if (path_q != (PointInfo *) NULL) \ path_q=(PointInfo *) RelinquishMagickMemory(path_q); \ polygon_primitive=(PrimitiveInfo *) \ RelinquishMagickMemory(polygon_primitive); \ return((PrimitiveInfo *) NULL); \ } \ }
Referenced by TraceStrokePolygon().
#define DrawCompareEdge | ( | p, | |||
q | ) |
{ \ if (((p)-(q)) < 0.0) \ return(-1); \ if (((p)-(q)) > 0.0) \ return(1); \ }
Referenced by DrawCompareEdges().
#define MaxBezierCoordinates 6291456 |
Referenced by DrawDashPolygon(), and RenderMVGContent().
#define PrimitiveExtentPad 2048 |
Referenced by CheckPrimitiveExtent(), RenderMVGContent(), TracePath(), and TraceRoundRectangle().
#define RenderImageTag "Render/Image" |
Referenced by RenderMVGContent().
#define ThrowPointExpectedException | ( | token, | |||
exception | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),DrawError, \ "NonconformingDrawingPrimitiveDefinition","`%s'",token); \ status=MagickFalse; \ break; \ }
Referenced by RenderMVGContent(), and TracePath().
typedef struct _ElementInfo ElementInfo |
typedef struct _PolygonInfo PolygonInfo |
enum PathInfoCode |
MagickExport DrawInfo* AcquireDrawInfo | ( | void | ) |
References AcquireCriticalMemory(), and GetDrawInfo().
Referenced by GradientImage().
static PolygonInfo** AcquirePolygonThreadSet | ( | const PrimitiveInfo * | primitive_info | ) | [static] |
static SegmentInfo AffineEdge | ( | const Image * | image, | |
const AffineMatrix * | affine, | |||
const double | y, | |||
const SegmentInfo * | edge | |||
) | [static] |
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 MagickBooleanType CheckPrimitiveExtent | ( | MVGInfo * | mvg_info, | |
const size_t | pad | |||
) | [static] |
References AcquireCriticalMemory(), _MVGInfo::exception, _MVGInfo::extent, GetMagickModule, GetMaxMemoryRequest(), MagickFalse, MagickTrue, _MVGInfo::offset, _MVGInfo::primitive_info, PrimitiveExtentPad, RelinquishMagickMemory(), ResizeQuantumMemory(), ResourceLimitError, ThrowMagickException(), and UndefinedPrimitive.
Referenced by RenderMVGContent(), TraceBezier(), TraceEllipse(), TracePath(), and TraceRoundRectangle().
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, IsEventLogging(), _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 double ConstrainCoordinate | ( | double | x | ) | [inline, static] |
Referenced by DrawPrimitive().
static PolygonInfo* ConvertPathToPolygon | ( | const PathInfo * | path_info | ) | [static] |
References AcquireMagickMemory(), AcquireQuantumMemory(), _EdgeInfo::bounds, _PathInfo::code, _EdgeInfo::direction, DrawCompareEdges(), _PolygonInfo::edges, EndCode, _EdgeInfo::ghostline, GhostlineCode, _EdgeInfo::highwater, IsEventLogging(), LogPolygonInfo(), MagickEpsilon, MagickFalse, MagickTrue, MoveToCode, _PolygonInfo::number_edges, _EdgeInfo::number_points, OpenCode, _PathInfo::point, _EdgeInfo::points, RelinquishMagickMemory(), ResizeQuantumMemory(), ReversePoints(), _EdgeInfo::scanline, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by AcquirePolygonThreadSet().
static PathInfo* ConvertPrimitiveToPath | ( | const PrimitiveInfo * | primitive_info | ) | [static] |
References AcquireQuantumMemory(), AlphaPrimitive, _PrimitiveInfo::closed_subpath, _PathInfo::code, ColorPrimitive, EndCode, GhostlineCode, ImagePrimitive, IsEventLogging(), LineToCode, LogPathInfo(), MagickEpsilon, MagickFalse, MoveToCode, OpenCode, _PathInfo::point, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, ResizeQuantumMemory(), TextPrimitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by AcquirePolygonThreadSet().
References _DrawInfo::clip_mask, _DrawInfo::clipping_mask, _DrawInfo::composite_mask, _DrawInfo::dash_pattern, _DrawInfo::debug, _DrawInfo::density, DestroyImage(), DestroyString(), _DrawInfo::encoding, _DrawInfo::family, _DrawInfo::fill_pattern, _DrawInfo::font, _DrawInfo::geometry, GetMagickModule, _DrawInfo::gradient, _DrawInfo::id, 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 size_t DestroyEdge | ( | PolygonInfo * | polygon_info, | |
const size_t | edge | |||
) | [static] |
References _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by GetFillAlpha().
static PolygonInfo* DestroyPolygonInfo | ( | PolygonInfo * | polygon_info | ) | [static] |
References _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by DestroyPolygonThreadSet().
static PolygonInfo** DestroyPolygonThreadSet | ( | PolygonInfo ** | polygon_info | ) | [static] |
References DestroyPolygonInfo(), GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquirePolygonThreadSet(), and DrawPolygonPrimitive().
MagickExport MagickBooleanType DrawAffineImage | ( | Image * | image, | |
const Image * | source, | |||
const AffineMatrix * | affine, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AffineEdge(), _PixelInfo::alpha, _Image::columns, CompositePixelInfoOver(), _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), InterpolatePixelInfo(), InverseAffineMatrix(), 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 MagickBooleanType DrawBoundingRectangles | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const PolygonInfo * | polygon_info, | |||
ExceptionInfo * | exception | |||
) | [static] |
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, _Image::rows, SaneStrokeWidth(), _GeometryInfo::sigma, SigmaValue, _DrawInfo::stroke, 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 | |||
) |
References _DrawInfo::clip_mask, DestroyImage(), DrawClippingMask(), GetImageArtifact(), MagickFalse, SetImageMask(), and WritePixelMask.
Referenced by RenderMVGContent().
static Image * DrawClippingMask | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const char * | id, | |||
const char * | clip_path, | |||
ExceptionInfo * | exception | |||
) | [static] |
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, _Image::debug, DestroyDrawInfo(), DestroyImage(), DestroyString(), DrawEvent, _Image::filename, _DrawInfo::fill, GetMagickModule, 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 int DrawCompareEdges | ( | const void * | p_edge, | |
const void * | q_edge | |||
) | [static] |
References DrawCompareEdge.
Referenced by ConvertPathToPolygon().
static Image* DrawCompositeMask | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const char * | id, | |||
const char * | mask_path, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireImage(), AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, _PixelInfo::alpha_trait, AlphaChannel, _Image::background_color, BlendPixelTrait, CloneDrawInfo(), CloneString(), _Image::columns, CompositePixelMask, _Image::debug, DestroyDrawInfo(), DestroyImage(), DrawEvent, _Image::filename, _DrawInfo::fill, GetMagickModule, 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 MagickBooleanType DrawDashPolygon | ( | const DrawInfo * | draw_info, | |
const PrimitiveInfo * | primitive_info, | |||
Image * | image, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireQuantumMemory(), _DrawInfo::affine, CloneDrawInfo(), _PrimitiveInfo::coordinates, _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _Image::debug, DestroyDrawInfo(), DrawEvent, DrawStrokePolygon(), ExpandAffine(), GetMagickModule, LogMagickEvent(), MagickEpsilon, MagickFalse, MagickTrue, MaxBezierCoordinates, _DrawInfo::miterlimit, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
MagickExport MagickBooleanType DrawGradientImage | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
ExceptionInfo * | exception | |||
) |
References AcquireAuthenticCacheView(), _GradientInfo::bounding_box, _StopInfo::color, _Image::columns, CompositePixelInfoBlend(), _Image::debug, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelInfo(), GetPixelInfoPixel(), GetStopColorOffset(), _DrawInfo::gradient, _GradientInfo::gradient_vector, _RectangleInfo::height, 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, _RectangleInfo::x, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _RectangleInfo::y, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by GradientImage().
MagickExport MagickBooleanType DrawImage | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
ExceptionInfo * | exception | |||
) |
References RenderMVGContent().
Referenced by AnnotateImage(), RenderHoughLines(), and VignetteImage().
MagickExport MagickBooleanType DrawPatternPath | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const char * | name, | |||
Image ** | pattern, | |||
ExceptionInfo * | exception | |||
) |
References AcquireImage(), AcquireImageInfo(), AcquireString(), AllCompliance, CloneDrawInfo(), CloneString(), _Image::debug, DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DrawEvent, _Image::filename, _DrawInfo::fill_pattern, FormatLocaleString(), GetImageArtifact(), GetMagickModule, _DrawInfo::gradient, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickGradientOptions, MagickPathExtent, NewImageList(), ParseCommandOption(), _DrawInfo::primitive, QueryColorCompliance(), RenderMVGContent(), SetImageBackgroundColor(), _Image::signature, _ImageInfo::size, _DrawInfo::stroke_pattern, TraceEvent, and _GradientInfo::type.
Referenced by RenderMVGContent().
static MagickBooleanType DrawPolygonPrimitive | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const PrimitiveInfo * | primitive_info, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireAuthenticCacheView(), AcquirePolygonThreadSet(), _DrawInfo::affine, _PixelInfo::alpha, _EdgeInfo::bounds, _Image::columns, CompositePixelOver(), _PrimitiveInfo::coordinates, _Image::debug, DestroyCacheView(), DestroyPolygonThreadSet(), DisableMSCWarning, DrawBoundingRectangles(), DrawEvent, ExpandAffine(), _Image::filename, _DrawInfo::fill_rule, FillToBorderMethod, FloodfillMethod, GetCacheViewAuthenticPixels(), GetFillAlpha(), GetFillColor(), GetMagickModule, GetOpenMPThreadId(), GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetStrokeColor(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _PrimitiveInfo::method, _PrimitiveInfo::point, RestoreMSCWarning, _Image::rows, SaneStrokeWidth(), SetPixelViaPixelInfo(), _DrawInfo::signature, _Image::signature, _DrawInfo::stroke_antialias, 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 | |||
) |
References AcquireAuthenticCacheView(), AcquireImageInfo(), _DrawInfo::affine, _DrawInfo::alpha, _PixelInfo::alpha, _Image::alpha_trait, AlphaChannel, AlphaPrimitive, AnnotateImage(), _PixelInfo::blue, _DrawInfo::border_color, ClampToQuantum(), _DrawInfo::clipping_mask, CloneDrawInfo(), CloneString(), _PrimitiveInfo::closed_subpath, ColorPrimitive, _Image::colorspace, _Image::columns, _DrawInfo::compliance, _DrawInfo::compose, _DrawInfo::composite_mask, CompositeImage(), CompositePixelMask, CompositePixelOver(), ConstrainCoordinate(), CopyMagickString(), _DrawInfo::dash_pattern, _Image::debug, DestroyCacheView(), DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DestroyImageList(), DrawAffineImage(), DrawDashPolygon(), DrawEvent, DrawPolygonPrimitive(), DrawStrokePolygon(), ExpandAffine(), _ImageInfo::filename, _DrawInfo::fill, FillToBorderMethod, _Image::filter, FloodfillMethod, FloodfillPaintImage(), FormatLocaleString(), _DrawInfo::geometry, GetCacheViewAuthenticPixels(), GetFillColor(), GetMagickModule, GetOneCacheViewVirtualPixelInfo(), GetOneVirtualPixelInfo(), GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), _DrawInfo::gravity, _Image::gravity, _PixelInfo::green, ImagePrimitive, _Image::interpolate, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), IsGrayColorspace(), IsPixelInfoGray(), _DrawInfo::linecap, _DrawInfo::linejoin, LocaleNCompare(), LogMagickEvent(), LogPrimitiveInfo(), 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, SaneStrokeWidth(), SetGeometry(), SetImageAlpha(), SetImageAlphaChannel(), SetImageChannelMask(), SetImageColorspace(), SetImageMask(), SetImageProgressMonitor(), SetPixelAlpha(), SetPixelViaPixelInfo(), SrcOverCompositeOp, sRGBColorspace, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, SVGCompliance, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _PrimitiveInfo::text, TextPrimitive, TileVirtualPixelMethod, TransformImage(), TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedPixelTrait, UndefinedPrimitive, WritePixelMask, _RectangleInfo::x, _PointInfo::x, _RectangleInfo::y, and _PointInfo::y.
Referenced by DrawBoundingRectangles(), and RenderMVGContent().
static MagickBooleanType DrawRoundLinecap | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const PrimitiveInfo * | primitive_info, | |||
ExceptionInfo * | exception | |||
) | [static] |
References _PrimitiveInfo::coordinates, DrawPolygonPrimitive(), MagickEpsilon, _PrimitiveInfo::point, _PrimitiveInfo::primitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().
static MagickBooleanType DrawStrokePolygon | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const PrimitiveInfo * | primitive_info, | |||
ExceptionInfo * | exception | |||
) | [static] |
References _PixelInfo::alpha, CloneDrawInfo(), CloneImage(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, _Image::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 | ) |
References GetMagickModule, LogMagickEvent(), _AffineMatrix::sx, _AffineMatrix::sy, and TraceEvent.
Referenced by GetDrawInfo(), ParseAffineGeometry(), and RenderMVGContent().
References AcquireExceptionInfo(), AcquireString(), _DrawInfo::affine, AllCompliance, _PixelInfo::alpha, _DrawInfo::alpha, _ImageInfo::antialias, _ImageInfo::border_color, _DrawInfo::border_color, ButtCap, _DrawInfo::clip_path, CloneImageInfo(), CloneString(), _DrawInfo::compose, _DrawInfo::debug, _DrawInfo::decorate, _DrawInfo::density, _ImageInfo::density, DestroyExceptionInfo(), DestroyImageInfo(), _DrawInfo::direction, _DrawInfo::encoding, EvenOddRule, _DrawInfo::family, _DrawInfo::fill, _DrawInfo::fill_alpha, _DrawInfo::fill_rule, _DrawInfo::font, _ImageInfo::font, GetAffineMatrix(), GetImageOption(), 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(), _ImageInfo::pointsize, _DrawInfo::pointsize, QueryColorCompliance(), _DrawInfo::render, _DrawInfo::server_name, _ImageInfo::server_name, _DrawInfo::signature, StringToDouble(), 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().
static double GetFillAlpha | ( | PolygonInfo * | polygon_info, | |
const double | mid, | |||
const MagickBooleanType | fill, | |||
const FillRule | fill_rule, | |||
const ssize_t | x, | |||
const ssize_t | y, | |||
double * | stroke_alpha | |||
) | [static] |
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 SplayTreeInfo* GetMVGMacros | ( | const char * | primitive | ) | [static] |
References AcquireString(), AddValueToSplayTree(), ConstantString(), CopyMagickString(), DestroyString(), GetNextToken(), LocaleCompare(), MagickPathExtent, MVGMacroCompare(), NewSplayTree(), and RelinquishMagickMemory().
Referenced by RenderMVGContent().
static double GetStopColorOffset | ( | const GradientInfo * | gradient, | |
const ssize_t | x, | |||
const ssize_t | y | |||
) | [inline, static] |
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 AffineMatrix InverseAffineMatrix | ( | const AffineMatrix * | affine | ) | [static] |
References PerceptibleReciprocal(), _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sx, _AffineMatrix::sy, _AffineMatrix::tx, and _AffineMatrix::ty.
Referenced by DrawAffineImage().
static MagickBooleanType IsPoint | ( | const char * | point | ) | [inline, static] |
References MagickEpsilon, MagickFalse, MagickTrue, and StringToDouble().
Referenced by RenderMVGContent(), and TracePath().
static void LogPathInfo | ( | const PathInfo * | path_info | ) | [static] |
References _PathInfo::code, DrawEvent, EndCode, GetMagickModule, GhostlineCode, LineToCode, LogMagickEvent(), MoveToCode, OpenCode, _PathInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by ConvertPrimitiveToPath().
static void LogPolygonInfo | ( | const PolygonInfo * | polygon_info | ) | [static] |
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 void LogPrimitiveInfo | ( | const PrimitiveInfo * | primitive_info | ) | [static] |
References AlphaPrimitive, ColorPrimitive, DrawEvent, GetMagickModule, ImagePrimitive, LogMagickEvent(), MagickEpsilon, _PrimitiveInfo::method, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, TextPrimitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
MagickExport int MVGMacroCompare | ( | const void * | target, | |
const void * | source | |||
) |
Referenced by GetMVGMacros().
static double Permutate | ( | const ssize_t | n, | |
const ssize_t | k | |||
) | [inline, static] |
Referenced by TraceBezier().
static MagickBooleanType RenderMVGContent | ( | Image * | image, | |
const DrawInfo * | draw_info, | |||
const size_t | depth, | |||
ExceptionInfo * | exception | |||
) |
References AcquireMagickMemory(), AcquireQuantumMemory(), AcquireString(), _DrawInfo::affine, _DrawInfo::align, AllCompliance, _DrawInfo::alpha, _PixelInfo::alpha, _Image::alpha_trait, AlphaPrimitive, ArcPrimitive, BezierPrimitive, BezierQuantum, _DrawInfo::bounds, 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, _Image::debug, _DrawInfo::decorate, DegreesToRadians(), DestroyDrawInfo(), DestroyImage(), DestroySplayTree(), DestroyString(), DirectClass, _DrawInfo::direction, DrawClipPath(), DrawClippingMask(), DrawCompositeMask(), DrawError, DrawEvent, DrawPatternPath(), DrawPrimitive(), EllipsePrimitive, _MVGInfo::exception, _MVGInfo::extent, _Image::filename, FileToString(), _DrawInfo::fill, _DrawInfo::fill_alpha, _DrawInfo::fill_rule, FloodfillMethod, FormatLocaleString(), GetAffineMatrix(), GetImageArtifact(), GetMagickModule, GetMVGMacros(), GetNextToken(), GetTypeMetrics(), GetValueFromSplayTree(), _DrawInfo::gradient, GradientImage(), _DrawInfo::gravity, _RectangleInfo::height, ImagePrimitive, _DrawInfo::interline_spacing, _DrawInfo::interword_spacing, 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, _PrimitiveInfo::primitive, _DrawInfo::primitive, _MVGInfo::primitive_info, PrimitiveExtentPad, QuantumRange, QueryColorCompliance(), RadialGradient, RectanglePrimitive, RelinquishMagickMemory(), _DrawInfo::render, RenderImageTag, ResizeQuantumMemory(), ResourceLimitError, ResourceLimitFatalError, RoundRectanglePrimitive, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageAlphaChannel(), SetImageArtifact(), SetImageMask(), SetImageProgress(), SetImageStorageClass(), _DrawInfo::signature, _Image::signature, _DrawInfo::stretch, StringToDouble(), StringToLong(), StringToUnsignedLong(), _DrawInfo::stroke, _DrawInfo::stroke_alpha, _DrawInfo::stroke_antialias, _DrawInfo::stroke_width, _DrawInfo::style, SVGCompliance, _AffineMatrix::sx, _AffineMatrix::sy, _PrimitiveInfo::text, _DrawInfo::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(), and DrawPatternPath().
static void ReversePoints | ( | PointInfo * | points, | |
const size_t | number_points | |||
) | [static] |
Referenced by ConvertPathToPolygon().
References _Image::columns, MagickEpsilon, MagickMax, MagickMin, _Image::rows, and _DrawInfo::stroke_width.
Referenced by DrawBoundingRectangles(), DrawPolygonPrimitive(), DrawPrimitive(), and TraceStrokePolygon().
static int StopInfoCompare | ( | const void * | x, | |
const void * | y | |||
) | [static] |
References MagickEpsilon, and _StopInfo::offset.
Referenced by DrawGradientImage().
static MagickBooleanType TraceArc | ( | MVGInfo * | mvg_info, | |
const PointInfo | start, | |||
const PointInfo | end, | |||
const PointInfo | degrees | |||
) |
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 | |||
) |
References _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 | |||
) |
References AcquireQuantumMemory(), BezierQuantum, CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, _MVGInfo::exception, GetMagickModule, 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 | |||
) |
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 | |||
) |
References CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, DegreesToRadians(), _MVGInfo::exception, GetMagickModule, MagickEpsilon, MagickFalse, MagickMax, MagickPI, MagickTrue, _MVGInfo::offset, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, ResourceLimitError, ThrowMagickException(), 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 | |||
) |
References _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, MagickEpsilon, MagickFalse, MagickTrue, PointPrimitive, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent(), and TraceArcPath().
static size_t TracePath | ( | MVGInfo * | mvg_info, | |
const char * | path, | |||
ExceptionInfo * | exception | |||
) | [static] |
References CheckPrimitiveExtent(), _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, FillToBorderMethod, GetNextToken(), IsPoint(), MagickFalse, MagickPathExtent, MagickTrue, _PrimitiveInfo::method, _MVGInfo::offset, _PrimitiveInfo::primitive, _MVGInfo::primitive_info, PrimitiveExtentPad, StringToDouble(), StringToLong(), ThrowPointExpectedException, TraceArcPath(), TraceBezier(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by RenderMVGContent().
static MagickBooleanType TracePoint | ( | PrimitiveInfo * | primitive_info, | |
const PointInfo | point | |||
) | [inline, static] |
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 | |||
) |
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 | |||
) |
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 | |||
) |
References MagickEpsilon, MagickTrue, _PrimitiveInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by TraceStrokePolygon().
static PrimitiveInfo * TraceStrokePolygon | ( | const Image * | image, | |
const DrawInfo * | draw_info, | |||
const PrimitiveInfo * | primitive_info | |||
) | [static] |
References AcquireCriticalMemory(), AcquireQuantumMemory(), _DrawInfo::affine, BevelJoin, BezierQuantum, CheckPathExtent, _PrimitiveInfo::closed_subpath, _PrimitiveInfo::coordinates, DegreesToRadians(), ExpandAffine(), _DrawInfo::linecap, _DrawInfo::linejoin, MagickEpsilon, MagickFalse, MagickPI, MiterJoin, _DrawInfo::miterlimit, _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), RoundCap, RoundJoin, SaneStrokeWidth(), SquareCap, TraceSquareLinecap(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().