|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/annotate.h"#include "MagickCore/annotate-private.h"#include "MagickCore/attribute.h"#include "MagickCore/cache-view.h"#include "MagickCore/client.h"#include "MagickCore/color.h"#include "MagickCore/color-private.h"#include "MagickCore/composite.h"#include "MagickCore/composite-private.h"#include "MagickCore/constitute.h"#include "MagickCore/draw.h"#include "MagickCore/draw-private.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/gem.h"#include "MagickCore/geometry.h"#include "MagickCore/image-private.h"#include "MagickCore/log.h"#include "MagickCore/quantum.h"#include "MagickCore/quantum-private.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/property.h"#include "MagickCore/resource_.h"#include "MagickCore/semaphore.h"#include "MagickCore/statistic.h"#include "MagickCore/string_.h"#include "MagickCore/token-private.h"#include "MagickCore/transform.h"#include "MagickCore/type.h"#include "MagickCore/utility.h"#include "MagickCore/utility-private.h"#include "MagickCore/xwindow.h"#include "MagickCore/xwindow-private.h"
Go to the source code of this file.
| MagickPrivate MagickBooleanType AnnotateComponentGenesis | ( | void | ) |
Definition at line 145 of file annotate.c.
References AcquireSemaphoreInfo(), annotate_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickPrivate void AnnotateComponentTerminus | ( | void | ) |
Definition at line 169 of file annotate.c.
References annotate_semaphore, AcquireSemaphoreInfo(), and DestroySemaphoreInfo().
Referenced by MagickCoreTerminus().
| MagickExport MagickBooleanType AnnotateImage | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 227 of file annotate.c.
References MaxTextExtent, _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _DrawInfo::signature, _DrawInfo::text, MagickTrue, StringToList(), CloneDrawInfo(), SetGeometry(), SetGeometryInfo(), _DrawInfo::geometry, ParsePageGeometry(), ParseGeometry(), SetImageStorageClass(), DirectClass, _DrawInfo::affine, _AffineMatrix::tx, _GeometryInfo::xi, _Image::page, _RectangleInfo::x, _AffineMatrix::ty, _GeometryInfo::psi, _RectangleInfo::y, CloneString(), GetTypeMetrics(), _TypeMetric::ascent, _TypeMetric::descent, _DrawInfo::interline_spacing, _DrawInfo::gravity, UndefinedGravity, _PointInfo::x, _AffineMatrix::ry, _PointInfo::y, _AffineMatrix::sy, NorthWestGravity, _RectangleInfo::width, _RectangleInfo::height, NorthGravity, _AffineMatrix::sx, _TypeMetric::width, _TypeMetric::bounds, _SegmentInfo::x1, _AffineMatrix::rx, NorthEastGravity, WestGravity, StaticGravity, CenterGravity, EastGravity, SouthWestGravity, SouthGravity, SouthEastGravity, _DrawInfo::align, LeftAlign, CenterAlign, RightAlign, _DrawInfo::undercolor, _PixelInfo::alpha, TransparentAlpha, _DrawInfo::fill, FormatLocaleString(), _TypeMetric::origin, _DrawInfo::primitive, DrawImage(), DestroyDrawInfo(), _TypeMetric::underline_thickness, _DrawInfo::decorate, OverlineDecoration, _TypeMetric::underline_position, UnderlineDecoration, RenderType(), LineThroughDecoration, DestroyString(), and RelinquishMagickMemory().
Referenced by DrawPrimitive(), PolaroidImage(), and MontageImageList().
| static char* EscapeParenthesis | ( | const char * | text | ) | [static] |
Definition at line 1598 of file annotate.c.
References AcquireString(), MagickMin(), and MaxTextExtent.
Referenced by RenderPostscript().
| MagickExport ssize_t FormatMagickCaption | ( | Image * | image, |
| DrawInfo * | draw_info, | ||
| const MagickBooleanType | split, | ||
| TypeMetric * | metrics, | ||
| char ** | caption, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 548 of file annotate.c.
References AcquireString(), _DrawInfo::text, GetUTFCode(), GetUTFOctets(), IsUTFSpace(), MagickFalse, GetTypeMetrics(), _TypeMetric::width, CopyMagickString(), ConcatenateMagickString(), and DestroyString().
Referenced by PolaroidImage().
| MagickExport MagickBooleanType GetMultilineTypeMetrics | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| TypeMetric * | metrics, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 674 of file annotate.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _DrawInfo::text, _DrawInfo::signature, CloneDrawInfo(), DestroyString(), StringToList(), _DrawInfo::render, _DrawInfo::direction, UndefinedDirection, ResetMagickMemory(), GetTypeMetrics(), _TypeMetric::width, _TypeMetric::height, _TypeMetric::ascent, _TypeMetric::descent, _DrawInfo::interline_spacing, DestroyDrawInfo(), and RelinquishMagickMemory().
| MagickExport MagickBooleanType GetTypeMetrics | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| TypeMetric * | metrics, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 785 of file annotate.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _DrawInfo::text, _DrawInfo::signature, CloneDrawInfo(), _DrawInfo::render, _DrawInfo::direction, UndefinedDirection, ResetMagickMemory(), _PointInfo::x, _PointInfo::y, RenderType(), AnnotateEvent, _TypeMetric::width, _TypeMetric::height, _TypeMetric::ascent, _TypeMetric::descent, _TypeMetric::max_advance, _TypeMetric::bounds, _SegmentInfo::x1, _SegmentInfo::y1, _SegmentInfo::x2, _SegmentInfo::y2, _TypeMetric::origin, _TypeMetric::pixels_per_em, _TypeMetric::underline_position, _TypeMetric::underline_thickness, and DestroyDrawInfo().
Referenced by AnnotateImage(), FormatMagickCaption(), GetMultilineTypeMetrics(), and MontageImageList().
| static size_t MagickMin | ( | const size_t | x, |
| const size_t | y | ||
| ) | [inline, static] |
Definition at line 1591 of file annotate.c.
Referenced by EscapeParenthesis().
| 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] |
Definition at line 1547 of file annotate.c.
References ThrowMagickException(), GetMagickModule, MissingDelegateWarning, _DrawInfo::font, and RenderPostscript().
| static MagickBooleanType RenderPostscript | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| const PointInfo * | offset, | ||
| TypeMetric * | metrics, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1628 of file annotate.c.
References MaxTextExtent, _Image::debug, MagickFalse, LogMagickEvent(), AnnotateEvent, GetMagickModule, _DrawInfo::font, _DrawInfo::pointsize, AcquireUniqueFileResource(), ThrowFileException, FileOpenError, FormatLocaleFile(), _DrawInfo::affine, _AffineMatrix::sx, _AffineMatrix::sy, MagickEpsilon, _AffineMatrix::rx, _AffineMatrix::ry, MagickTrue, _PointInfo::x, _PointInfo::y, _DrawInfo::text, EscapeParenthesis(), DestroyString(), FormatLocaleString(), AcquireImageInfo(), _ImageInfo::filename, CloneString(), _ImageInfo::page, _DrawInfo::density, _ImageInfo::density, _ImageInfo::antialias, _DrawInfo::text_antialias, ReadImage(), CatchException(), DestroyImageInfo(), RelinquishUniqueFileResource(), DefaultResolution, ParseGeometry(), _GeometryInfo::rho, _GeometryInfo::sigma, SigmaValue, TransformImage(), GetImageBoundingBox(), _RectangleInfo::height, ExpandAffine(), _RectangleInfo::y, _RectangleInfo::width, _RectangleInfo::x, _TypeMetric::pixels_per_em, _TypeMetric::ascent, _TypeMetric::descent, _TypeMetric::width, _Image::columns, _TypeMetric::height, _TypeMetric::max_advance, _TypeMetric::bounds, _SegmentInfo::x1, _SegmentInfo::y1, _SegmentInfo::x2, _SegmentInfo::y2, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _DrawInfo::render, DestroyImage(), _DrawInfo::fill, _PixelInfo::alpha, TransparentAlpha, _Image::matte, SetImageAlphaChannel(), OpaqueAlphaChannel, AcquireCacheView(), _Image::rows, GetCacheViewAuthenticPixels(), GetFillColor(), SetPixelAlpha(), ClampToQuantum(), GetPixelIntensity(), QuantumRange, SetPixelRed(), _PixelInfo::red, SetPixelGreen(), _PixelInfo::green, SetPixelBlue(), _PixelInfo::blue, GetPixelChannels(), SyncCacheViewAuthenticPixels(), DestroyCacheView(), CompositeImage(), and OverCompositeOp.
Referenced by RenderFreetype().
| static MagickBooleanType RenderType | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| const PointInfo * | offset, | ||
| TypeMetric * | metrics, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 857 of file annotate.c.
References _DrawInfo::font, RenderFreetype(), _DrawInfo::encoding, RenderX11(), IsPathAccessible(), MagickFalse, GetTypeInfo(), ThrowMagickException(), GetMagickModule, TypeWarning, _DrawInfo::family, GetTypeInfoByFamily(), _DrawInfo::style, _DrawInfo::stretch, _DrawInfo::weight, CloneDrawInfo(), _DrawInfo::face, _TypeInfo::face, _TypeInfo::metrics, CloneString(), _DrawInfo::metrics, _TypeInfo::glyphs, _TypeInfo::encoding, and DestroyDrawInfo().
Referenced by AnnotateImage(), and GetTypeMetrics().
| static MagickBooleanType RenderX11 | ( | Image * | image, |
| const DrawInfo * | draw_info, | ||
| const PointInfo * | offset, | ||
| TypeMetric * | metrics, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2087 of file annotate.c.
References ThrowMagickException(), GetMagickModule, MissingDelegateError, _Image::filename, and MagickFalse.
Referenced by RenderType().
SemaphoreInfo* annotate_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 112 of file annotate.c.
Referenced by AnnotateComponentGenesis(), and AnnotateComponentTerminus().