MagickCore  6.7.5
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, PointPrimitive, LinePrimitive, RectanglePrimitive,
  RoundRectanglePrimitive, ArcPrimitive, EllipsePrimitive, CirclePrimitive,
  PolylinePrimitive, PolygonPrimitive, BezierPrimitive, ColorPrimitive,
  MattePrimitive, TextPrimitive, ImagePrimitive, PathPrimitive
}
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

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

Enumeration Type Documentation

enum AlignType
Enumerator:
UndefinedAlign 
LeftAlign 
CenterAlign 
RightAlign 

Definition at line 30 of file draw.h.

Enumerator:
UndefinedPathUnits 
UserSpace 
UserSpaceOnUse 
ObjectBoundingBox 

Definition at line 38 of file draw.h.

Enumerator:
UndefinedDecoration 
NoDecoration 
UnderlineDecoration 
OverlineDecoration 
LineThroughDecoration 

Definition at line 46 of file draw.h.

Enumerator:
UndefinedDirection 
RightToLeftDirection 
LeftToRightDirection 

Definition at line 55 of file draw.h.

enum FillRule
Enumerator:
UndefinedRule 
EvenOddRule 
NonZeroRule 

Definition at line 62 of file draw.h.

Enumerator:
UndefinedGradient 
LinearGradient 
RadialGradient 

Definition at line 70 of file draw.h.

enum LineCap
Enumerator:
UndefinedCap 
ButtCap 
RoundCap 
SquareCap 

Definition at line 77 of file draw.h.

enum LineJoin
Enumerator:
UndefinedJoin 
MiterJoin 
RoundJoin 
BevelJoin 

Definition at line 85 of file draw.h.

Enumerator:
UndefinedMethod 
PointMethod 
ReplaceMethod 
FloodfillMethod 
FillToBorderMethod 
ResetMethod 

Definition at line 93 of file draw.h.

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

Definition at line 103 of file draw.h.

Enumerator:
UndefinedReference 
GradientReference 

Definition at line 123 of file draw.h.

Enumerator:
UndefinedSpread 
PadSpread 
ReflectSpread 
RepeatSpread 

Definition at line 129 of file draw.h.


Function Documentation

MagickExport DrawInfo* AcquireDrawInfo ( void  )
MagickExport DrawInfo * CloneDrawInfo ( const ImageInfo ,
const 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  
)

Definition at line 4115 of file draw.c.

References _Image::debug, MagickFalse, LogMagickEvent(), DrawEvent, GetMagickModule, _DrawInfo::affine, _AffineMatrix::sx, _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sy, _AffineMatrix::tx, _AffineMatrix::ty, MagickTrue, _PrimitiveInfo::point, _PointInfo::x, _PointInfo::y, AcquireCacheView(), _PrimitiveInfo::primitive, PointPrimitive, _Image::rows, _Image::columns, GetCacheViewAuthenticPixels(), GetFillColor(), CompositePixelOver(), _PixelInfo::alpha, GetPixelAlpha(), SyncCacheViewAuthenticPixels(), ColorPrimitive, _PrimitiveInfo::method, PointMethod, GetPixelInfo(), SetPixelInfoPixel(), ReplaceMethod, CompositePixelChannel, GetOneCacheViewVirtualPixel(), _PixelInfo::red, RedPixelChannel, _PixelInfo::green, GreenPixelChannel, _PixelInfo::blue, BluePixelChannel, AlphaPixelChannel, GetPixelInfoPixel(), IsFuzzyEquivalencePixelInfo(), GetPixelChannels(), FloodfillMethod, FillToBorderMethod, GetOneVirtualPixelInfo(), TileVirtualPixelMethod, _DrawInfo::border_color, FloodfillPaintImage(), ResetMethod, MattePrimitive, _Image::matte, SetImageAlphaChannel(), OpaqueAlphaChannel, SetPixelAlpha(), ClampToQuantum(), SetPixelChannelMask(), AlphaChannel, TextPrimitive, MaxTextExtent, _PrimitiveInfo::text, CloneDrawInfo(), CloneString(), _DrawInfo::text, FormatLocaleString(), _DrawInfo::geometry, AnnotateImage(), DestroyDrawInfo(), ImagePrimitive, AcquireImageInfo(), LocaleNCompare(), ReadInlineImage(), CopyMagickString(), _ImageInfo::filename, ReadImage(), DestroyImageInfo(), SetImageProgressMonitor(), _Image::filter, TransformImage(), _DrawInfo::alpha, OpaqueAlpha, SetImageAlpha(), SetGeometry(), _Image::gravity, _DrawInfo::gravity, _RectangleInfo::x, _RectangleInfo::y, ParseGravityGeometry(), _Image::interpolate, _DrawInfo::compose, OverCompositeOp, DrawAffineImage(), CompositeImage(), DestroyImage(), IsEventLogging(), LogPrimitiveInfo(), ExpandAffine(), _DrawInfo::dash_pattern, _DrawInfo::stroke_width, MagickEpsilon, _DrawInfo::stroke, TransparentAlpha, DrawPolygonPrimitive(), DrawDashPolygon(), UndefinedPrimitive, _DrawInfo::linecap, RoundCap, _DrawInfo::linejoin, RoundJoin, DrawStrokePolygon(), and DestroyCacheView().

Referenced by DrawBoundingRectangles(), and DrawImage().

MagickExport void GetAffineMatrix ( AffineMatrix )