MagickCore  7.0.3
annotate.c File Reference
Include dependency graph for annotate.c:

Go to the source code of this file.

Data Structures

struct  _GraphemeInfo
 

Typedefs

typedef struct _GraphemeInfo GraphemeInfo
 

Functions

static MagickBooleanType RenderType (Image *, const DrawInfo *, const PointInfo *, TypeMetric *, ExceptionInfo *)
 
static MagickBooleanType RenderPostscript (Image *, const DrawInfo *, const PointInfo *, TypeMetric *, ExceptionInfo *)
 
static MagickBooleanType RenderFreetype (Image *, const DrawInfo *, const char *, const PointInfo *, TypeMetric *, ExceptionInfo *)
 
static MagickBooleanType RenderX11 (Image *, const DrawInfo *, const PointInfo *, TypeMetric *, ExceptionInfo *)
 
MagickPrivate MagickBooleanType AnnotateComponentGenesis (void)
 
MagickPrivate void AnnotateComponentTerminus (void)
 
MagickExport MagickBooleanType AnnotateImage (Image *image, const DrawInfo *draw_info, ExceptionInfo *exception)
 
MagickExport ssize_t FormatMagickCaption (Image *image, DrawInfo *draw_info, const MagickBooleanType split, TypeMetric *metrics, char **caption, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetMultilineTypeMetrics (Image *image, const DrawInfo *draw_info, TypeMetric *metrics, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetTypeMetrics (Image *image, const DrawInfo *draw_info, TypeMetric *metrics, ExceptionInfo *exception)
 
static MagickBooleanType RenderFreetype (Image *image, const DrawInfo *draw_info, const char *magick_unused(encoding), const PointInfo *offset, TypeMetric *metrics, ExceptionInfo *exception)
 
static char * EscapeParenthesis (const char *source)
 

Variables

static SemaphoreInfoannotate_semaphore = (SemaphoreInfo *) NULL
 

Typedef Documentation

typedef struct _GraphemeInfo GraphemeInfo

Function Documentation

MagickPrivate MagickBooleanType AnnotateComponentGenesis ( void  )

Definition at line 162 of file annotate.c.

References AcquireSemaphoreInfo(), annotate_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

MagickPrivate void AnnotateComponentTerminus ( void  )

Definition at line 187 of file annotate.c.

References ActivateSemaphoreInfo(), annotate_semaphore, and RelinquishSemaphoreInfo().

Referenced by MagickCoreTerminus().

MagickExport MagickBooleanType AnnotateImage ( Image image,
const DrawInfo draw_info,
ExceptionInfo exception 
)

Definition at line 271 of file annotate.c.

References _DrawInfo::affine, _DrawInfo::align, _PixelInfo::alpha, _TypeMetric::ascent, _TypeMetric::bounds, CenterAlign, CenterGravity, CloneDrawInfo(), CloneString(), _Image::colorspace, _Image::debug, _DrawInfo::decorate, _TypeMetric::descent, DestroyDrawInfo(), DestroyString(), DirectClass, DrawImage(), EastGravity, _Image::filename, _DrawInfo::fill, FormatLocaleString(), _DrawInfo::geometry, GetMagickModule, GetTypeMetrics(), _DrawInfo::gravity, _RectangleInfo::height, _DrawInfo::interline_spacing, IsGrayColorspace(), LeftAlign, LineThroughDecoration, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, NorthEastGravity, NorthGravity, NorthWestGravity, _TypeMetric::origin, OverlineDecoration, _Image::page, ParseGeometry(), ParsePageGeometry(), _DrawInfo::primitive, _GeometryInfo::psi, RelinquishMagickMemory(), RenderType(), RightAlign, _AffineMatrix::rx, _AffineMatrix::ry, SetGeometry(), SetGeometryInfo(), SetImageColorspace(), SetImageStorageClass(), _DrawInfo::signature, _Image::signature, SouthEastGravity, SouthGravity, SouthWestGravity, sRGBColorspace, StringToList(), _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, TraceEvent, TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedGravity, _DrawInfo::undercolor, _TypeMetric::underline_position, _TypeMetric::underline_thickness, UnderlineDecoration, WestGravity, _RectangleInfo::width, _TypeMetric::width, _PointInfo::x, _RectangleInfo::x, _SegmentInfo::x1, _GeometryInfo::xi, _PointInfo::y, and _RectangleInfo::y.

Referenced by DrawPrimitive(), MontageImageList(), and PolaroidImage().

static char* EscapeParenthesis ( const char *  source)
static
MagickExport ssize_t FormatMagickCaption ( Image image,
DrawInfo draw_info,
const MagickBooleanType  split,
TypeMetric metrics,
char **  caption,
ExceptionInfo exception 
)
static MagickBooleanType RenderFreetype ( Image ,
const DrawInfo ,
const char *  ,
const PointInfo ,
TypeMetric ,
ExceptionInfo  
)

Referenced by RenderType().

static MagickBooleanType RenderFreetype ( Image image,
const DrawInfo draw_info,
const char *  magick_unusedencoding,
const PointInfo offset,
TypeMetric metrics,
ExceptionInfo exception 
)
static
static MagickBooleanType RenderPostscript ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics,
ExceptionInfo exception 
)

Definition at line 1822 of file annotate.c.

References AcquireAuthenticCacheView(), AcquireImageInfo(), AcquireUniqueFileResource(), _DrawInfo::affine, _PixelInfo::alpha, _Image::alpha_trait, AnnotateEvent, _ImageInfo::antialias, _TypeMetric::ascent, _PixelInfo::blue, _TypeMetric::bounds, CatchException(), ClampToQuantum(), CloneString(), _Image::columns, CompositeImage(), _Image::debug, DefaultResolution, _DrawInfo::density, _ImageInfo::density, _TypeMetric::descent, DestroyCacheView(), DestroyImage(), DestroyImageInfo(), DestroyString(), EscapeParenthesis(), ExpandAffine(), _ImageInfo::filename, FileOpenError, _DrawInfo::fill, _DrawInfo::font, FormatLocaleFile(), FormatLocaleString(), GetCacheViewAuthenticPixels(), GetFillColor(), GetImageBoundingBox(), GetMagickModule, GetPixelChannels(), GetPixelIntensity(), _PixelInfo::green, _RectangleInfo::height, _TypeMetric::height, LogMagickEvent(), magick_restrict, MagickEpsilon, MagickFalse, MagickPathExtent, MagickTrue, _TypeMetric::max_advance, NegateImage(), OpaqueAlphaChannel, OverCompositeOp, _ImageInfo::page, ParseGeometry(), _TypeMetric::pixels_per_em, _DrawInfo::pointsize, QuantumScale, ReadImage(), _PixelInfo::red, RelinquishUniqueFileResource(), _DrawInfo::render, _GeometryInfo::rho, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageAlphaChannel(), SetPixelAlpha(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _GeometryInfo::sigma, SigmaValue, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _DrawInfo::text_antialias, ThrowFileException, TransformImage(), TransparentAlpha, UndefinedPixelTrait, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _RectangleInfo::width, _TypeMetric::width, _PointInfo::x, _RectangleInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _RectangleInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.

Referenced by RenderFreetype(), and RenderType().

static MagickBooleanType RenderType ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics,
ExceptionInfo exception 
)
static

Definition at line 900 of file annotate.c.

References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireString(), AcquireTokenInfo(), _DrawInfo::affine, _PixelInfo::alpha, _Image::alpha_trait, AnnotateEvent, _TypeMetric::ascent, _TypeMetric::bounds, CloneDrawInfo(), CloneString(), _GraphemeInfo::cluster, _Image::columns, CompositePixelOver(), ConcatenateString(), ConstantString(), ConvertLatin1ToUTF8(), _DrawInfo::dash_pattern, _Image::debug, DefaultResolution, _DrawInfo::density, _TypeMetric::descent, DestroyCacheView(), DestroyDrawInfo(), DestroyString(), DestroyTokenInfo(), DirectClass, _DrawInfo::direction, DrawImage(), _TypeInfo::encoding, _DrawInfo::encoding, _TypeInfo::face, _DrawInfo::face, _DrawInfo::family, _Image::filename, _DrawInfo::font, FormatLocaleString(), GetCacheViewAuthenticPixels(), GetFillColor(), GetImageProperty(), GetMagickModule, GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetTypeInfo(), GetTypeInfoByFamily(), GetUTFCode(), GetUTFOctets(), _TypeInfo::glyphs, _TypeMetric::height, _GraphemeInfo::index, _DrawInfo::interword_spacing, IsPathAccessible(), IsUTFSpace(), _DrawInfo::kerning, LocaleCompare(), LogMagickEvent(), magick_restrict, magick_unreferenced, MagickEpsilon, MagickFalse, MagickPathExtent, MagickTrue, _TypeMetric::max_advance, _TypeInfo::metrics, _DrawInfo::metrics, OpaqueAlphaChannel, _TypeMetric::origin, ParseGeometry(), _TypeMetric::pixels_per_em, _DrawInfo::pointsize, _DrawInfo::primitive, RelinquishMagickMemory(), _DrawInfo::render, RenderFreetype(), RenderPostscript(), RenderX11(), _GeometryInfo::rho, RightToLeftDirection, RoundJoin, _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageAlphaChannel(), SetImageStorageClass(), _GeometryInfo::sigma, SigmaValue, _Image::storage_class, _DrawInfo::stretch, _DrawInfo::stroke, _DrawInfo::stroke_pattern, _DrawInfo::style, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _DrawInfo::text_antialias, ThrowBinaryException, ThrowMagickException(), Tokenizer(), TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, TypeError, TypeWarning, UndefinedPixelTrait, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _DrawInfo::weight, _TypeMetric::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _GraphemeInfo::x_advance, _GraphemeInfo::x_offset, _PointInfo::y, _SegmentInfo::y1, _SegmentInfo::y2, and _GraphemeInfo::y_offset.

Referenced by AnnotateImage(), and GetTypeMetrics().

static MagickBooleanType RenderX11 ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics,
ExceptionInfo exception 
)

Variable Documentation

SemaphoreInfo* annotate_semaphore = (SemaphoreInfo *) NULL
static

Definition at line 129 of file annotate.c.

Referenced by AnnotateComponentGenesis(), AnnotateComponentTerminus(), and RenderX11().