MagickCore  6.9.11
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 *)
 
static MagickBooleanType RenderPostscript (Image *, const DrawInfo *, const PointInfo *, TypeMetric *)
 
static MagickBooleanType RenderFreetype (Image *, const DrawInfo *, const char *, const PointInfo *, TypeMetric *)
 
static MagickBooleanType RenderX11 (Image *, const DrawInfo *, const PointInfo *, TypeMetric *)
 
MagickExport MagickBooleanType AnnotateComponentGenesis (void)
 
MagickExport void AnnotateComponentTerminus (void)
 
MagickExport MagickBooleanType AnnotateImage (Image *image, const DrawInfo *draw_info)
 
MagickExport ssize_t FormatMagickCaption (Image *image, DrawInfo *draw_info, const MagickBooleanType split, TypeMetric *metrics, char **caption)
 
MagickExport MagickBooleanType GetMultilineTypeMetrics (Image *image, const DrawInfo *draw_info, TypeMetric *metrics)
 
MagickExport MagickBooleanType GetTypeMetrics (Image *image, const DrawInfo *draw_info, TypeMetric *metrics)
 
static MagickBooleanType RenderFreetype (Image *image, const DrawInfo *draw_info, const char *magick_unused(encoding), const PointInfo *offset, TypeMetric *metrics)
 
static char * EscapeParenthesis (const char *source)
 

Variables

static SemaphoreInfoannotate_semaphore = (SemaphoreInfo *) NULL
 

Typedef Documentation

◆ GraphemeInfo

typedef struct _GraphemeInfo GraphemeInfo

Function Documentation

◆ AnnotateComponentGenesis()

MagickExport MagickBooleanType AnnotateComponentGenesis ( void  )

Definition at line 155 of file annotate.c.

References AllocateSemaphoreInfo(), annotate_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

◆ AnnotateComponentTerminus()

MagickExport void AnnotateComponentTerminus ( void  )

Definition at line 180 of file annotate.c.

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

Referenced by MagickCoreTerminus().

◆ AnnotateImage()

MagickExport MagickBooleanType AnnotateImage ( Image image,
const DrawInfo draw_info 
)

Definition at line 211 of file annotate.c.

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

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

◆ EscapeParenthesis()

static char* EscapeParenthesis ( const char *  source)
static

◆ FormatMagickCaption()

MagickExport ssize_t FormatMagickCaption ( Image image,
DrawInfo draw_info,
const MagickBooleanType  split,
TypeMetric metrics,
char **  caption 
)

◆ GetMultilineTypeMetrics()

◆ GetTypeMetrics()

◆ RenderFreetype() [1/2]

static MagickBooleanType RenderFreetype ( Image ,
const DrawInfo ,
const char *  ,
const PointInfo ,
TypeMetric  
)

Referenced by RenderType().

◆ RenderFreetype() [2/2]

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

◆ RenderPostscript()

static MagickBooleanType RenderPostscript ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics 
)

Definition at line 1892 of file annotate.c.

References AcquireAuthenticCacheView(), AcquireImageInfo(), AcquireUniqueFileResource(), _DrawInfo::affine, AnnotateEvent, _ImageInfo::antialias, _TypeMetric::ascent, _PixelPacket::blue, _TypeMetric::bounds, CatchException(), ClampToQuantum(), CloneString(), _Image::columns, CompositeImage(), _Image::debug, DefaultResolution, _DrawInfo::density, _ImageInfo::density, _TypeMetric::descent, DestroyCacheView(), DestroyImage(), DestroyImageInfo(), DestroyString(), EscapeParenthesis(), _Image::exception, ExpandAffine(), _ImageInfo::filename, FileOpenError, _DrawInfo::fill, _DrawInfo::font, FormatLocaleFile(), FormatLocaleString(), GetCacheViewAuthenticPixels(), GetFillColor(), GetImageBoundingBox(), GetMagickModule, GetPixelIntensity(), _PixelPacket::green, _RectangleInfo::height, _TypeMetric::height, LogMagickEvent(), magick_restrict, MagickEpsilon, MagickFalse, MagickTrue, _Image::matte, _TypeMetric::max_advance, MaxTextExtent, _PixelPacket::opacity, OpaqueAlphaChannel, OverCompositeOp, _ImageInfo::page, ParseGeometry(), _TypeMetric::pixels_per_em, _DrawInfo::pointsize, QuantumRange, ReadImage(), _PixelPacket::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(), TransparentOpacity, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _RectangleInfo::width, _TypeMetric::width, _RectangleInfo::x, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _RectangleInfo::y, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.

Referenced by RenderFreetype(), and RenderType().

◆ RenderType()

◆ RenderX11()

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

Variable Documentation

◆ annotate_semaphore

SemaphoreInfo* annotate_semaphore = (SemaphoreInfo *) NULL
static

Definition at line 125 of file annotate.c.

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