MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
draw.h File Reference
Include dependency graph for draw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _StopInfo
 
struct  _GradientInfo
 
struct  _ElementReference
 
struct  _DrawInfo
 
struct  _PrimitiveInfo
 
struct  _TypeMetric
 

Typedefs

typedef struct _StopInfo StopInfo
 
typedef struct _GradientInfo GradientInfo
 
typedef struct _ElementReference ElementReference
 
typedef struct _DrawInfo DrawInfo
 
typedef struct _PrimitiveInfo PrimitiveInfo
 
typedef struct _TypeMetric TypeMetric
 

Enumerations

enum  AlignType { UndefinedAlign, LeftAlign, CenterAlign, RightAlign }
 
enum  ClipPathUnits { UndefinedPathUnits, UserSpace, UserSpaceOnUse, ObjectBoundingBox }
 
enum  DecorationType {
  UndefinedDecoration, NoDecoration, UnderlineDecoration, OverlineDecoration,
  LineThroughDecoration
}
 
enum  DirectionType { UndefinedDirection, RightToLeftDirection, LeftToRightDirection }
 
enum  FillRule { UndefinedRule, EvenOddRule, NonZeroRule }
 
enum  GradientType { UndefinedGradient, LinearGradient, RadialGradient }
 
enum  LineCap { UndefinedCap, ButtCap, RoundCap, SquareCap }
 
enum  LineJoin { UndefinedJoin, MiterJoin, RoundJoin, BevelJoin }
 
enum  PaintMethod {
  UndefinedMethod, PointMethod, ReplaceMethod, FloodfillMethod,
  FillToBorderMethod, ResetMethod
}
 
enum  PrimitiveType {
  UndefinedPrimitive, AlphaPrimitive, ArcPrimitive, BezierPrimitive,
  CirclePrimitive, ColorPrimitive, EllipsePrimitive, ImagePrimitive,
  LinePrimitive, PathPrimitive, PointPrimitive, PolygonPrimitive,
  PolylinePrimitive, RectanglePrimitive, RoundRectanglePrimitive, TextPrimitive
}
 
enum  ReferenceType { UndefinedReference, GradientReference }
 
enum  SpreadMethod { UndefinedSpread, PadSpread, ReflectSpread, RepeatSpread }
 

Functions

MagickExport DrawInfoAcquireDrawInfo (void)
 
MagickExport DrawInfoCloneDrawInfo (const ImageInfo *, const DrawInfo *)
 
MagickExport DrawInfoDestroyDrawInfo (DrawInfo *)
 
MagickExport MagickBooleanType DrawAffineImage (Image *, const Image *, const AffineMatrix *, ExceptionInfo *)
 
MagickExport MagickBooleanType DrawClipPath (Image *, const DrawInfo *, const char *, ExceptionInfo *)
 
MagickExport MagickBooleanType DrawGradientImage (Image *, const DrawInfo *, ExceptionInfo *)
 
MagickExport MagickBooleanType DrawImage (Image *, const DrawInfo *, ExceptionInfo *)
 
MagickExport MagickBooleanType DrawPatternPath (Image *, const DrawInfo *, const char *, Image **, ExceptionInfo *)
 
MagickExport MagickBooleanType DrawPrimitive (Image *, const DrawInfo *, const PrimitiveInfo *, ExceptionInfo *)
 
MagickExport void GetAffineMatrix (AffineMatrix *)
 
MagickExport void GetDrawInfo (const ImageInfo *, DrawInfo *)
 

Typedef Documentation

◆ DrawInfo

typedef struct _DrawInfo DrawInfo

◆ ElementReference

◆ GradientInfo

typedef struct _GradientInfo GradientInfo

◆ PrimitiveInfo

typedef struct _PrimitiveInfo PrimitiveInfo

◆ StopInfo

typedef struct _StopInfo StopInfo

◆ TypeMetric

typedef struct _TypeMetric TypeMetric

Enumeration Type Documentation

◆ AlignType

enum AlignType
Enumerator
UndefinedAlign 
LeftAlign 
CenterAlign 
RightAlign 

Definition at line 30 of file draw.h.

◆ ClipPathUnits

Enumerator
UndefinedPathUnits 
UserSpace 
UserSpaceOnUse 
ObjectBoundingBox 

Definition at line 38 of file draw.h.

◆ DecorationType

Enumerator
UndefinedDecoration 
NoDecoration 
UnderlineDecoration 
OverlineDecoration 
LineThroughDecoration 

Definition at line 46 of file draw.h.

◆ DirectionType

Enumerator
UndefinedDirection 
RightToLeftDirection 
LeftToRightDirection 

Definition at line 55 of file draw.h.

◆ FillRule

enum FillRule
Enumerator
UndefinedRule 
EvenOddRule 
NonZeroRule 

Definition at line 62 of file draw.h.

◆ GradientType

Enumerator
UndefinedGradient 
LinearGradient 
RadialGradient 

Definition at line 70 of file draw.h.

◆ LineCap

enum LineCap
Enumerator
UndefinedCap 
ButtCap 
RoundCap 
SquareCap 

Definition at line 77 of file draw.h.

◆ LineJoin

enum LineJoin
Enumerator
UndefinedJoin 
MiterJoin 
RoundJoin 
BevelJoin 

Definition at line 85 of file draw.h.

◆ PaintMethod

Enumerator
UndefinedMethod 
PointMethod 
ReplaceMethod 
FloodfillMethod 
FillToBorderMethod 
ResetMethod 

Definition at line 93 of file draw.h.

◆ PrimitiveType

Enumerator
UndefinedPrimitive 
AlphaPrimitive 
ArcPrimitive 
BezierPrimitive 
CirclePrimitive 
ColorPrimitive 
EllipsePrimitive 
ImagePrimitive 
LinePrimitive 
PathPrimitive 
PointPrimitive 
PolygonPrimitive 
PolylinePrimitive 
RectanglePrimitive 
RoundRectanglePrimitive 
TextPrimitive 

Definition at line 103 of file draw.h.

◆ ReferenceType

Enumerator
UndefinedReference 
GradientReference 

Definition at line 123 of file draw.h.

◆ SpreadMethod

Enumerator
UndefinedSpread 
PadSpread 
ReflectSpread 
RepeatSpread 

Definition at line 129 of file draw.h.

Function Documentation

◆ AcquireDrawInfo()

MagickExport DrawInfo* AcquireDrawInfo ( void  )

◆ CloneDrawInfo()

MagickExport DrawInfo * CloneDrawInfo ( const ImageInfo ,
const DrawInfo  
)

◆ DestroyDrawInfo()

◆ DrawAffineImage()

MagickExport MagickBooleanType DrawAffineImage ( Image ,
const Image ,
const AffineMatrix ,
ExceptionInfo  
)

◆ DrawClipPath()

MagickExport MagickBooleanType DrawClipPath ( Image ,
const DrawInfo ,
const char *  ,
ExceptionInfo  
)

◆ DrawGradientImage()

MagickExport MagickBooleanType DrawGradientImage ( Image ,
const DrawInfo ,
ExceptionInfo  
)

◆ DrawImage()

MagickExport MagickBooleanType DrawImage ( Image ,
const DrawInfo ,
ExceptionInfo  
)

◆ DrawPatternPath()

MagickExport MagickBooleanType DrawPatternPath ( Image ,
const DrawInfo ,
const char *  ,
Image **  ,
ExceptionInfo  
)

◆ DrawPrimitive()

MagickExport MagickBooleanType DrawPrimitive ( Image ,
const DrawInfo ,
const PrimitiveInfo ,
ExceptionInfo  
)

Definition at line 4314 of file draw.c.

References AcquireAuthenticCacheView(), AcquireImageInfo(), _DrawInfo::affine, _PixelInfo::alpha, _DrawInfo::alpha, _Image::alpha_trait, AlphaChannel, AlphaPrimitive, AnnotateImage(), _PixelInfo::blue, _DrawInfo::border_color, ClampToQuantum(), CloneDrawInfo(), CloneString(), ColorPrimitive, _Image::colorspace, _Image::columns, CompositePixelOver(), CopyMagickString(), _DrawInfo::dash_pattern, _Image::debug, DestroyCacheView(), DestroyDrawInfo(), DestroyImage(), DestroyImageInfo(), DrawAffineImage(), DrawDashPolygon(), DrawEpsilon, 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(), _Image::gravity, _DrawInfo::gravity, _PixelInfo::green, ImagePrimitive, _Image::interpolate, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), IsGrayColorspace(), IsPixelInfoGray(), _DrawInfo::linecap, _DrawInfo::linejoin, LocaleNCompare(), LogMagickEvent(), LogPrimitiveInfo(), magick_restrict, MagickFalse, MagickPathExtent, MagickTrue, _PrimitiveInfo::method, OpaqueAlpha, OpaqueAlphaChannel, ParseGravityGeometry(), _PrimitiveInfo::point, PointMethod, PointPrimitive, _PrimitiveInfo::primitive, ReadImage(), ReadInlineImage(), _PixelInfo::red, ReplaceMethod, ResetMethod, RoundCap, RoundJoin, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetGeometry(), SetImageAlpha(), SetImageAlphaChannel(), SetImageChannelMask(), SetImageColorspace(), SetImageProgressMonitor(), SetPixelAlpha(), SetPixelViaPixelInfo(), sRGBColorspace, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::stroke_width, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _PrimitiveInfo::text, TextPrimitive, TileVirtualPixelMethod, TransformImage(), TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedPixelTrait, UndefinedPrimitive, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.

Referenced by DrawBoundingRectangles(), and DrawImage().

◆ GetAffineMatrix()

MagickExport void GetAffineMatrix ( AffineMatrix )

◆ GetDrawInfo()

MagickExport void GetDrawInfo ( const ImageInfo ,
DrawInfo  
)

Definition at line 4938 of file draw.c.

References AcquireExceptionInfo(), AcquireString(), _DrawInfo::affine, AllCompliance, _PixelInfo::alpha, _DrawInfo::alpha, _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_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, MagickFalse, MagickGravityOptions, MagickStyleOptions, MagickTrue, MagickWeightOptions, MiterJoin, _DrawInfo::miterlimit, NoDecoration, OpaqueAlpha, OverCompositeOp, ParseCommandOption(), _DrawInfo::pointsize, _ImageInfo::pointsize, QueryColorCompliance(), _DrawInfo::render, ResetMagickMemory(), _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().