MagickCore
6.9.7
|
#include "magick/studio.h"
#include "magick/annotate.h"
#include "magick/artifact.h"
#include "magick/blob.h"
#include "magick/cache.h"
#include "magick/cache-private.h"
#include "magick/cache-view.h"
#include "magick/channel.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
#include "magick/composite.h"
#include "magick/composite-private.h"
#include "magick/constitute.h"
#include "magick/draw.h"
#include "magick/draw-private.h"
#include "magick/enhance.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/image-private.h"
#include "magick/list.h"
#include "magick/log.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/paint.h"
#include "magick/pixel-accessor.h"
#include "magick/pixel-private.h"
#include "magick/property.h"
#include "magick/resample.h"
#include "magick/resample-private.h"
#include "magick/resource_.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/transform.h"
#include "magick/utility.h"
Data Structures | |
struct | _EdgeInfo |
struct | _ElementInfo |
struct | _PolygonInfo |
struct | _PathInfo |
Macros | |
#define | BezierQuantum 200 |
#define | DrawEpsilon (1.0e-10) |
#define | RenderImageTag "Render/Image" |
Typedefs | |
typedef struct _EdgeInfo | EdgeInfo |
typedef struct _ElementInfo | ElementInfo |
typedef struct _PolygonInfo | PolygonInfo |
typedef struct _PathInfo | PathInfo |
Enumerations | |
enum | PathInfoCode { MoveToCode, OpenCode, GhostlineCode, LineToCode, EndCode } |
Functions | |
static MagickBooleanType | DrawStrokePolygon (Image *, const DrawInfo *, const PrimitiveInfo *) |
static PrimitiveInfo * | TraceStrokePolygon (const DrawInfo *, const PrimitiveInfo *) |
static size_t | TracePath (PrimitiveInfo *, const char *) |
static void | TraceArc (PrimitiveInfo *, const PointInfo, const PointInfo, const PointInfo) |
static void | TraceArcPath (PrimitiveInfo *, const PointInfo, const PointInfo, const PointInfo, const double, const MagickBooleanType, const MagickBooleanType) |
static void | TraceBezier (PrimitiveInfo *, const size_t) |
static void | TraceCircle (PrimitiveInfo *, const PointInfo, const PointInfo) |
static void | TraceEllipse (PrimitiveInfo *, const PointInfo, const PointInfo, const PointInfo) |
static void | TraceLine (PrimitiveInfo *, const PointInfo, const PointInfo) |
static void | TraceRectangle (PrimitiveInfo *, const PointInfo, const PointInfo) |
static void | TraceRoundRectangle (PrimitiveInfo *, const PointInfo, const PointInfo, PointInfo) |
static void | TraceSquareLinecap (PrimitiveInfo *, const size_t, const double) |
MagickExport DrawInfo * | AcquireDrawInfo (void) |
MagickExport DrawInfo * | CloneDrawInfo (const ImageInfo *image_info, const DrawInfo *draw_info) |
static int | CompareEdges (const void *x, const void *y) |
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 DrawInfo *magick_unused(draw_info), 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) |
static void | DrawBoundingRectangles (Image *image, const DrawInfo *draw_info, const PolygonInfo *polygon_info) |
MagickExport MagickBooleanType | DrawClipPath (Image *image, const DrawInfo *draw_info, const char *name) |
static MagickBooleanType | DrawDashPolygon (const DrawInfo *draw_info, const PrimitiveInfo *primitive_info, Image *image) |
static MagickBooleanType | IsPoint (const char *point) |
static void | TracePoint (PrimitiveInfo *primitive_info, const PointInfo point) |
MagickExport MagickBooleanType | DrawImage (Image *image, const DrawInfo *draw_info) |
static double | GetStopColorOffset (const GradientInfo *gradient, const ssize_t x, const ssize_t y) |
MagickExport MagickBooleanType | DrawGradientImage (Image *image, const DrawInfo *draw_info) |
MagickExport MagickBooleanType | DrawPatternPath (Image *image, const DrawInfo *draw_info, const char *name, Image **pattern) |
static PolygonInfo ** | DestroyPolygonThreadSet (PolygonInfo **polygon_info) |
static PolygonInfo ** | AcquirePolygonThreadSet (const DrawInfo *draw_info, const PrimitiveInfo *primitive_info) |
static double | GetOpacityPixel (PolygonInfo *polygon_info, const double mid, const MagickBooleanType fill, const FillRule fill_rule, const ssize_t x, const ssize_t y, double *stroke_opacity) |
static MagickBooleanType | DrawPolygonPrimitive (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info) |
static void | LogPrimitiveInfo (const PrimitiveInfo *primitive_info) |
MagickExport MagickBooleanType | DrawPrimitive (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info) |
static void | DrawRoundLinecap (Image *image, const DrawInfo *draw_info, const PrimitiveInfo *primitive_info) |
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 DrawImage(), TraceBezier(), and TraceStrokePolygon().
#define DrawEpsilon (1.0e-10) |
Referenced by AffineEdge(), CloneDrawInfo(), CompareEdges(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), DrawDashPolygon(), DrawImage(), DrawPrimitive(), DrawRoundLinecap(), DrawStrokePolygon(), GetDrawInfo(), GetOpacityPixel(), IsPoint(), LogPrimitiveInfo(), TraceArcPath(), TraceEllipse(), TraceLine(), TraceSquareLinecap(), and TraceStrokePolygon().
#define RenderImageTag "Render/Image" |
Referenced by DrawImage().
typedef struct _ElementInfo ElementInfo |
typedef struct _PolygonInfo PolygonInfo |
enum PathInfoCode |
MagickExport DrawInfo* AcquireDrawInfo | ( | void | ) |
References AcquireMagickMemory(), GetDrawInfo(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by GradientImage().
|
static |
|
static |
References _Image::columns, DrawEpsilon, _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().
MagickExport DrawInfo* CloneDrawInfo | ( | const ImageInfo * | image_info, |
const DrawInfo * | draw_info | ||
) |
References AcquireMagickMemory(), AcquireQuantumMemory(), _DrawInfo::affine, _DrawInfo::align, _DrawInfo::border_color, _DrawInfo::bounds, _DrawInfo::clip_mask, _DrawInfo::clip_units, CloneImage(), CloneString(), _DrawInfo::compose, CopyMagickMemory(), _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _DrawInfo::debug, _DrawInfo::decorate, _DrawInfo::density, _DrawInfo::direction, DrawEpsilon, _DrawInfo::element_reference, _DrawInfo::encoding, _Image::exception, _DrawInfo::family, _DrawInfo::fill, _DrawInfo::fill_opacity, _DrawInfo::fill_pattern, _DrawInfo::fill_rule, _DrawInfo::font, _DrawInfo::geometry, GetDrawInfo(), _DrawInfo::gradient, _DrawInfo::gravity, _DrawInfo::interline_spacing, _DrawInfo::interword_spacing, IsEventLogging(), _DrawInfo::kerning, _DrawInfo::linecap, _DrawInfo::linejoin, MagickTrue, _DrawInfo::metrics, _DrawInfo::miterlimit, NewImageList(), _GradientInfo::number_stops, _DrawInfo::pointsize, _DrawInfo::primitive, _DrawInfo::render, ResourceLimitFatalError, _DrawInfo::server_name, _GradientInfo::stops, _DrawInfo::stretch, _DrawInfo::stroke, _DrawInfo::stroke_antialias, _DrawInfo::stroke_opacity, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, _DrawInfo::style, _DrawInfo::text, _DrawInfo::text_antialias, ThrowFatalException, _DrawInfo::tile, _DrawInfo::undercolor, _DrawInfo::viewbox, and _DrawInfo::weight.
Referenced by AnnotateImage(), DrawBoundingRectangles(), DrawClipPath(), DrawDashPolygon(), DrawImage(), DrawPatternPath(), DrawPrimitive(), DrawStrokePolygon(), GetMultilineTypeMetrics(), GetTypeMetrics(), MontageImageList(), PolaroidImage(), RenderHoughLines(), RenderType(), and VignetteImage().
|
static |
References DrawEpsilon, _EdgeInfo::points, _PointInfo::x, and _PointInfo::y.
Referenced by ConvertPathToPolygon().
|
static |
References AcquireMagickMemory(), AcquireQuantumMemory(), _EdgeInfo::bounds, _PathInfo::code, CompareEdges(), _EdgeInfo::direction, DrawEpsilon, _PolygonInfo::edges, EndCode, _EdgeInfo::ghostline, GhostlineCode, _EdgeInfo::highwater, IsEventLogging(), LogPolygonInfo(), MagickFalse, MagickTrue, MoveToCode, _PolygonInfo::number_edges, _EdgeInfo::number_points, OpenCode, _PathInfo::point, _EdgeInfo::points, RelinquishMagickMemory(), ResetMagickMemory(), ResizeQuantumMemory(), ReversePoints(), _EdgeInfo::scanline, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by AcquirePolygonThreadSet().
|
static |
References AcquireQuantumMemory(), _PathInfo::code, ColorPrimitive, DrawEpsilon, EndCode, GhostlineCode, ImagePrimitive, IsEventLogging(), LineToCode, LogPathInfo(), magick_unreferenced, MagickFalse, MattePrimitive, MoveToCode, OpenCode, _PathInfo::point, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, TextPrimitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by AcquirePolygonThreadSet().
MagickExport DrawInfo* DestroyDrawInfo | ( | DrawInfo * | draw_info | ) |
References _DrawInfo::clip_mask, _DrawInfo::dash_pattern, _DrawInfo::debug, _DrawInfo::density, DestroyImage(), DestroyString(), _DrawInfo::encoding, _DrawInfo::family, _DrawInfo::fill_pattern, _DrawInfo::font, _DrawInfo::geometry, GetMagickModule, _DrawInfo::gradient, LogMagickEvent(), MagickFalse, MagickSignature, _DrawInfo::metrics, _DrawInfo::primitive, RelinquishMagickMemory(), _DrawInfo::server_name, _DrawInfo::signature, _GradientInfo::stops, _DrawInfo::stroke_pattern, _DrawInfo::text, _DrawInfo::tile, and TraceEvent.
Referenced by AnnotateImage(), DrawBoundingRectangles(), DrawClipPath(), DrawDashPolygon(), DrawImage(), DrawPatternPath(), DrawPrimitive(), DrawStrokePolygon(), GetMultilineTypeMetrics(), GetTypeMetrics(), GradientImage(), MontageImageList(), PolaroidImage(), RenderHoughLines(), RenderType(), and VignetteImage().
|
static |
References CopyMagickMemory(), _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by GetOpacityPixel().
|
static |
References _PolygonInfo::edges, _PolygonInfo::number_edges, _EdgeInfo::points, and RelinquishMagickMemory().
Referenced by DestroyPolygonThreadSet().
|
static |
References DestroyPolygonInfo(), GetMagickResourceLimit(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquirePolygonThreadSet(), and DrawPolygonPrimitive().
MagickExport MagickBooleanType DrawAffineImage | ( | Image * | image, |
const Image * | source, | ||
const AffineMatrix * | affine | ||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AffineEdge(), _Image::columns, _Image::debug, DestroyCacheView(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), InterpolateMagickPixelPacket(), InverseAffineMatrix(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMax, MagickMin, MagickPixelCompositeOver(), MagickSignature, MagickTrue, _MagickPixelPacket::opacity, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageStorageClass(), SetMagickPixelPacket(), SetPixelPacket(), _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 |
References _DrawInfo::affine, _EdgeInfo::bounds, CloneDrawInfo(), _Image::columns, DefaultResolution, _DrawInfo::density, DestroyDrawInfo(), _EdgeInfo::direction, DrawPrimitive(), _PolygonInfo::edges, _Image::exception, ExpandAffine(), _DrawInfo::fill, MagickFalse, _PrimitiveInfo::method, _PolygonInfo::number_edges, ParseGeometry(), _PrimitiveInfo::primitive, QueryColorDatabase(), RectanglePrimitive, ReplaceMethod, _GeometryInfo::rho, _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 * | name | ||
) |
References _Image::background_color, _Image::clip_mask, _DrawInfo::clip_mask, CloneDrawInfo(), CloneImage(), CloneString(), _Image::columns, _Image::debug, DestroyDrawInfo(), DestroyImage(), DestroyString(), DrawEvent, DrawImage(), _Image::exception, _Image::filename, _DrawInfo::fill, FormatLocaleString(), GetImageArtifact(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, NegateImage(), _PixelPacket::opacity, _DrawInfo::primitive, QueryColorDatabase(), _Image::rows, SetImageBackgroundColor(), SetImageClipMask(), _Image::signature, TraceEvent, and TransparentOpacity.
Referenced by DrawImage().
|
static |
References AcquireQuantumMemory(), _DrawInfo::affine, CloneDrawInfo(), _PrimitiveInfo::coordinates, _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _Image::debug, DestroyDrawInfo(), DrawEpsilon, DrawEvent, DrawStrokePolygon(), ExpandAffine(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, _DrawInfo::miterlimit, _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
MagickExport MagickBooleanType DrawGradientImage | ( | Image * | image, |
const DrawInfo * | draw_info | ||
) |
References AcquireAuthenticCacheView(), _GradientInfo::bounding_box, _StopInfo::color, _Image::columns, _Image::debug, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetStopColorOffset(), _DrawInfo::gradient, _GradientInfo::gradient_vector, _RectangleInfo::height, LinearGradient, LogMagickEvent(), magick_restrict, MagickFalse, MagickPixelCompositeBlend(), MagickSignature, MagickTrue, _GradientInfo::number_stops, _StopInfo::offset, PadSpread, RadialGradient, _GradientInfo::radius, ReflectSpread, RepeatSpread, SetMagickPixelPacket(), _Image::signature, _GradientInfo::spread, _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 | ||
) |
References AcquireImageInfo(), AcquireMagickMemory(), AcquireQuantumMemory(), AcquireString(), _DrawInfo::affine, _DrawInfo::align, ArcPrimitive, BezierPrimitive, BezierQuantum, _DrawInfo::bounds, CatchException(), CirclePrimitive, ClampToQuantum(), _DrawInfo::clip_mask, _DrawInfo::clip_units, CloneDrawInfo(), CloneString(), ColorPrimitive, _Image::columns, _DrawInfo::compose, _PrimitiveInfo::coordinates, CopyMagickString(), _DrawInfo::dash_offset, _DrawInfo::dash_pattern, _Image::debug, _DrawInfo::decorate, DegreesToRadians(), DestroyDrawInfo(), DestroyImageInfo(), DestroyString(), DirectClass, _DrawInfo::direction, DrawClipPath(), DrawEpsilon, DrawError, DrawEvent, DrawPatternPath(), DrawPrimitive(), EllipsePrimitive, _Image::exception, _Image::filename, _ImageInfo::filename, FileToString(), _DrawInfo::fill, _DrawInfo::fill_opacity, _DrawInfo::fill_pattern, _DrawInfo::fill_rule, FloodfillMethod, FormatLocaleString(), GetAffineMatrix(), GetImageArtifact(), GetMagickModule, GetNextToken(), _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, MagickComposeOptions, MagickDecorateOptions, MagickDirectionOptions, MagickFalse, MagickFillRuleOptions, MagickGravityOptions, MagickLineCapOptions, MagickLineJoinOptions, MagickMax, MagickMethodOptions, MagickPI, MagickSignature, MagickStretchOptions, MagickStyleOptions, MagickTrue, MagickWeightOptions, MattePrimitive, MaxTextExtent, _PrimitiveInfo::method, _DrawInfo::miterlimit, ObjectBoundingBox, _PixelPacket::opacity, _DrawInfo::opacity, OpaqueOpacity, PadSpread, _Image::page, ParseCommandOption(), PathPrimitive, _PrimitiveInfo::point, PointPrimitive, _DrawInfo::pointsize, PolygonPrimitive, PolylinePrimitive, _DrawInfo::primitive, _PrimitiveInfo::primitive, QuantumRange, QuantumScale, QueryColorDatabase(), RadialGradient, ReadImage(), RectanglePrimitive, RelinquishMagickMemory(), RenderImageTag, ResizeQuantumMemory(), ResourceLimitError, ResourceLimitFatalError, RoundRectanglePrimitive, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageArtifact(), SetImageClipMask(), SetImageProgress(), SetImageStorageClass(), _Image::signature, _DrawInfo::signature, _DrawInfo::stretch, StringToDouble(), StringToLong(), StringToUnsignedLong(), _DrawInfo::stroke, _DrawInfo::stroke_antialias, _DrawInfo::stroke_opacity, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, _DrawInfo::style, _AffineMatrix::sx, _AffineMatrix::sy, _PrimitiveInfo::text, _DrawInfo::text_antialias, TextPrimitive, ThrowBinaryException, ThrowFatalException, ThrowMagickException(), TraceArc(), TraceBezier(), TraceCircle(), TraceEllipse(), TraceEvent, TraceLine(), TracePath(), TracePoint(), TraceRectangle(), TraceRoundRectangle(), _AffineMatrix::tx, _AffineMatrix::ty, _GradientInfo::type, UndefinedPrimitive, _DrawInfo::viewbox, _DrawInfo::weight, _RectangleInfo::width, _RectangleInfo::x, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _RectangleInfo::y, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by AnnotateImage(), DrawClipPath(), DrawPatternPath(), RenderHoughLines(), and VignetteImage().
MagickExport MagickBooleanType DrawPatternPath | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const char * | name, | ||
Image ** | pattern | ||
) |
References AcquireImage(), AcquireImageInfo(), AcquireString(), CloneDrawInfo(), CloneString(), _Image::debug, DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DrawEvent, DrawImage(), _Image::exception, _Image::filename, _DrawInfo::fill_pattern, FormatLocaleString(), GetImageArtifact(), GetMagickModule, _DrawInfo::gradient, LogMagickEvent(), MagickFalse, MagickGradientOptions, MagickSignature, MaxTextExtent, NewImageList(), ParseCommandOption(), _DrawInfo::primitive, QueryColorDatabase(), SetImageBackgroundColor(), _Image::signature, _ImageInfo::size, _DrawInfo::stroke_pattern, TraceEvent, and _GradientInfo::type.
Referenced by DrawImage().
|
static |
References AcquireAuthenticCacheView(), AcquirePolygonThreadSet(), _DrawInfo::affine, _EdgeInfo::bounds, _Image::columns, _PrimitiveInfo::coordinates, _Image::debug, DestroyCacheView(), DestroyPolygonThreadSet(), DisableMSCWarning, DrawBoundingRectangles(), DrawEvent, _Image::exception, ExpandAffine(), _Image::filename, _DrawInfo::fill_rule, FillToBorderMethod, FloodfillMethod, GetCacheViewAuthenticPixels(), GetFillColor(), GetMagickModule, GetOpacityPixel(), GetOpenMPThreadId(), GetStrokeColor(), LogMagickEvent(), magick_restrict, MagickCompositeOver(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PrimitiveInfo::method, _PixelPacket::opacity, OpaqueAlphaChannel, _PrimitiveInfo::point, QuantumRange, RestoreMSCWarning, _Image::rows, SetImageAlphaChannel(), _Image::signature, _DrawInfo::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 | ||
) |
References AcquireAuthenticCacheView(), AcquireImageInfo(), _DrawInfo::affine, AnnotateImage(), _MagickPixelPacket::blue, _PixelPacket::blue, _DrawInfo::border_color, CloneDrawInfo(), CloneString(), ColorPrimitive, _Image::colorspace, _Image::columns, _DrawInfo::compose, CompositeImage(), CopyMagickString(), _DrawInfo::dash_pattern, _Image::debug, DefaultChannels, DestroyCacheView(), DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DrawAffineImage(), DrawDashPolygon(), DrawEpsilon, DrawEvent, DrawPolygonPrimitive(), DrawStrokePolygon(), _Image::exception, ExpandAffine(), _ImageInfo::filename, _DrawInfo::fill, FillToBorderMethod, _Image::filter, FloodfillMethod, FloodfillPaintImage(), FormatLocaleString(), _DrawInfo::geometry, GetCacheViewAuthenticPixels(), GetFillColor(), GetMagickModule, GetOneCacheViewVirtualPixel(), GetOneVirtualMagickPixel(), _DrawInfo::gravity, _Image::gravity, _MagickPixelPacket::green, _PixelPacket::green, ImagePrimitive, _Image::interpolate, IsColorSimilar(), IsEventLogging(), IsGrayColorspace(), IsPixelGray(), _DrawInfo::linecap, _DrawInfo::linejoin, LocaleNCompare(), LogMagickEvent(), LogPrimitiveInfo(), magick_restrict, MagickCompositeOver(), MagickFalse, MagickTrue, _Image::matte, MattePrimitive, MaxTextExtent, _PrimitiveInfo::method, _PixelPacket::opacity, _DrawInfo::opacity, OpacityChannel, OpaqueAlphaChannel, OpaqueOpacity, OverCompositeOp, ParseGravityGeometry(), _PrimitiveInfo::point, PointMethod, PointPrimitive, _PrimitiveInfo::primitive, ReadImage(), ReadInlineImage(), _MagickPixelPacket::red, _PixelPacket::red, ReplaceMethod, ResetMethod, RoundCap, RoundJoin, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetGeometry(), SetImageAlphaChannel(), SetImageColorspace(), SetImageOpacity(), SetImageProgressMonitor(), SetPixelOpacity, sRGBColorspace, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _PrimitiveInfo::text, TextPrimitive, TransformImage(), TransparentOpacity, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedPrimitive, _RectangleInfo::x, _PointInfo::x, _RectangleInfo::y, and _PointInfo::y.
Referenced by DrawBoundingRectangles(), and DrawImage().
|
static |
References _PrimitiveInfo::coordinates, DrawEpsilon, DrawPolygonPrimitive(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().
|
static |
References CloneDrawInfo(), CloneImage(), _PrimitiveInfo::coordinates, _Image::debug, DestroyDrawInfo(), DestroyImage(), DrawEpsilon, DrawEvent, DrawPolygonPrimitive(), DrawRoundLinecap(), _Image::exception, _DrawInfo::fill, _DrawInfo::fill_pattern, _DrawInfo::fill_rule, GetMagickModule, _DrawInfo::linecap, LogMagickEvent(), MagickFalse, MagickTrue, NonZeroRule, _PixelPacket::opacity, _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), RoundCap, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, TraceStrokePolygon(), TransparentOpacity, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawDashPolygon(), and DrawPrimitive().
MagickExport void GetAffineMatrix | ( | AffineMatrix * | affine_matrix | ) |
References GetMagickModule, LogMagickEvent(), ResetMagickMemory(), _AffineMatrix::sx, _AffineMatrix::sy, and TraceEvent.
Referenced by DrawImage(), GetDrawInfo(), and ParseAffineGeometry().
MagickExport void GetDrawInfo | ( | const ImageInfo * | image_info, |
DrawInfo * | draw_info | ||
) |
References AcquireExceptionInfo(), AcquireString(), _DrawInfo::affine, _ImageInfo::antialias, _DrawInfo::border_color, _ImageInfo::border_color, ButtCap, CloneImageInfo(), CloneString(), _DrawInfo::compose, _DrawInfo::debug, _DrawInfo::decorate, _DrawInfo::density, _ImageInfo::density, DestroyExceptionInfo(), DestroyImageInfo(), _DrawInfo::direction, DrawEpsilon, _DrawInfo::encoding, EvenOddRule, _DrawInfo::family, _DrawInfo::fill, _DrawInfo::fill_opacity, _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(), MagickDirectionOptions, MagickFalse, MagickGravityOptions, MagickSignature, MagickStyleOptions, MagickTrue, MagickWeightOptions, MiterJoin, _DrawInfo::miterlimit, NoDecoration, _PixelPacket::opacity, OpaqueOpacity, OverCompositeOp, ParseCommandOption(), _DrawInfo::pointsize, _ImageInfo::pointsize, QueryColorDatabase(), _DrawInfo::render, ResetMagickMemory(), _DrawInfo::server_name, _ImageInfo::server_name, _DrawInfo::signature, StringToDouble(), StringToUnsignedLong(), _DrawInfo::stroke, _DrawInfo::stroke_antialias, _DrawInfo::stroke_opacity, _DrawInfo::stroke_width, _DrawInfo::style, _DrawInfo::text_antialias, TraceEvent, TransparentOpacity, UndefinedDirection, _DrawInfo::undercolor, and _DrawInfo::weight.
Referenced by AcquireDrawInfo(), and CloneDrawInfo().
|
static |
References _EdgeInfo::bounds, DestroyEdge(), _EdgeInfo::direction, DrawEpsilon, _PolygonInfo::edges, _EdgeInfo::ghostline, _EdgeInfo::highwater, MagickAbsoluteValue, MagickFalse, MagickMax, NonZeroRule, _PolygonInfo::number_edges, _EdgeInfo::number_points, _EdgeInfo::points, _EdgeInfo::scanline, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by DrawPolygonPrimitive().
|
inlinestatic |
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 |
References PerceptibleReciprocal(), _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sx, _AffineMatrix::sy, _AffineMatrix::tx, and _AffineMatrix::ty.
Referenced by DrawAffineImage().
|
inlinestatic |
References DrawEpsilon, MagickFalse, MagickTrue, and StringToDouble().
Referenced by DrawImage(), and TracePath().
|
static |
References _PathInfo::code, DrawEvent, EndCode, GetMagickModule, GhostlineCode, LineToCode, LogMagickEvent(), MoveToCode, OpenCode, _PathInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by ConvertPrimitiveToPath().
|
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 |
References ColorPrimitive, DrawEpsilon, DrawEvent, GetMagickModule, ImagePrimitive, LogMagickEvent(), MattePrimitive, _PrimitiveInfo::method, _PrimitiveInfo::point, PointPrimitive, _PrimitiveInfo::primitive, TextPrimitive, UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawPrimitive().
|
inlinestatic |
Referenced by TraceBezier().
|
static |
Referenced by ConvertPathToPolygon().
|
static |
References TraceEllipse(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage().
static void TraceArcPath | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end, | ||
const PointInfo | arc, | ||
const double | angle, | ||
const MagickBooleanType | large_arc, | ||
const MagickBooleanType | sweep | ||
) |
References _PrimitiveInfo::coordinates, DegreesToRadians(), DrawEpsilon, MagickFalse, MagickPI, PerceptibleReciprocal(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, TraceBezier(), TraceLine(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by TracePath().
static void TraceBezier | ( | PrimitiveInfo * | primitive_info, |
const size_t | number_coordinates | ||
) |
References AcquireQuantumMemory(), BezierQuantum, _PrimitiveInfo::coordinates, MagickMin, Permutate(), _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), ResourceLimitFatalError, ThrowFatalException, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage(), TraceArcPath(), and TracePath().
static void TraceCircle | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
References TraceEllipse(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage().
static void TraceEllipse | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | stop, | ||
const PointInfo | degrees | ||
) |
References _PrimitiveInfo::coordinates, DegreesToRadians(), DrawEpsilon, MagickMax, MagickPI, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage(), TraceArc(), TraceCircle(), and TraceRoundRectangle().
static void TraceLine | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
References _PrimitiveInfo::coordinates, DrawEpsilon, PointPrimitive, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage(), and TraceArcPath().
|
static |
References _PrimitiveInfo::coordinates, FillToBorderMethod, FormatLocaleFile(), GetNextToken(), IsPoint(), MagickFalse, MagickTrue, MaxTextExtent, _PrimitiveInfo::method, _PrimitiveInfo::primitive, StringToDouble(), StringToLong(), TraceArcPath(), TraceBezier(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage().
|
inlinestatic |
References _PrimitiveInfo::coordinates, and _PrimitiveInfo::point.
Referenced by DrawImage(), TraceArcPath(), TraceBezier(), TraceEllipse(), TraceLine(), TracePath(), TraceRectangle(), and TraceRoundRectangle().
static void TraceRectangle | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end | ||
) |
References _PrimitiveInfo::coordinates, _PrimitiveInfo::primitive, TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawBoundingRectangles(), and DrawImage().
static void TraceRoundRectangle | ( | PrimitiveInfo * | primitive_info, |
const PointInfo | start, | ||
const PointInfo | end, | ||
PointInfo | arc | ||
) |
References _PrimitiveInfo::coordinates, _PrimitiveInfo::point, _PrimitiveInfo::primitive, TraceEllipse(), TracePoint(), _PointInfo::x, and _PointInfo::y.
Referenced by DrawImage().
static void TraceSquareLinecap | ( | PrimitiveInfo * | primitive_info, |
const size_t | number_vertices, | ||
const double | offset | ||
) |
References DrawEpsilon, _PrimitiveInfo::point, _PointInfo::x, and _PointInfo::y.
Referenced by TraceStrokePolygon().
|
static |
References AcquireQuantumMemory(), _DrawInfo::affine, BevelJoin, BezierQuantum, _PrimitiveInfo::coordinates, CopyMagickMemory(), DegreesToRadians(), DrawEpsilon, ExpandAffine(), _DrawInfo::linecap, _DrawInfo::linejoin, MagickFalse, MagickPI, MagickTrue, MiterJoin, _DrawInfo::miterlimit, _PrimitiveInfo::point, _PrimitiveInfo::primitive, RelinquishMagickMemory(), ResizeQuantumMemory(), RoundJoin, SquareCap, _DrawInfo::stroke_width, TraceSquareLinecap(), UndefinedPrimitive, _PointInfo::x, and _PointInfo::y.
Referenced by DrawStrokePolygon().