MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/annotate.h"
#include "MagickCore/annotate-private.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-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/enhance.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/policy.h"
#include "MagickCore/property.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/token.h"
#include "MagickCore/token-private.h"
#include "MagickCore/transform.h"
#include "MagickCore/transform-private.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.
Data Structures | |
struct | _GraphemeInfo |
Typedefs | |
typedef struct _GraphemeInfo | GraphemeInfo |
Variables | |
static SemaphoreInfo * | annotate_semaphore = (SemaphoreInfo *) NULL |
typedef struct _GraphemeInfo GraphemeInfo |
MagickPrivate MagickBooleanType AnnotateComponentGenesis | ( | void | ) |
Definition at line 164 of file annotate.c.
References AcquireSemaphoreInfo(), annotate_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void AnnotateComponentTerminus | ( | void | ) |
Definition at line 189 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 223 of file annotate.c.
References AcquireQuantumMemory(), _DrawInfo::affine, _DrawInfo::align, AllCompliance, _PixelInfo::alpha, _TypeMetric::ascent, CenterAlign, CenterGravity, CloneDrawInfo(), CloneString(), _Image::colorspace, _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, IsEventLogging(), IsGrayColorspace(), LeftAlign, LineThroughDecoration, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, NorthEastGravity, NorthGravity, NorthWestGravity, _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(), _DrawInfo::signature, _Image::signature, SouthEastGravity, SouthGravity, SouthWestGravity, sRGBColorspace, _DrawInfo::stroke, _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, TraceEvent, TransparentAlpha, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedGravity, _DrawInfo::undercolor, _TypeMetric::underline_position, _TypeMetric::underline_thickness, UnderlineDecoration, WestGravity, _TypeMetric::width, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _GeometryInfo::xi, _PointInfo::y, and _RectangleInfo::y.
Referenced by DrawPrimitive(), MontageImageList(), and PolaroidImage().
|
static |
Definition at line 2026 of file annotate.c.
References AcquireQuantumMemory(), MagickPathExtent, ResourceLimitFatalError, and ThrowFatalException.
Referenced by RenderPostscript().
MagickExport ssize_t FormatMagickCaption | ( | Image * | image, |
DrawInfo * | draw_info, | ||
const MagickBooleanType | split, | ||
TypeMetric * | metrics, | ||
char ** | caption, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 622 of file annotate.c.
References AcquireString(), _Image::columns, ConcatenateMagickString(), CopyMagickString(), DestroyString(), GetTypeMetrics(), GetUTFCode(), GetUTFOctets(), IsNonBreakingUTFSpace(), IsUTFSpace(), MagickFalse, ReplaceSpaceWithNewline(), _DrawInfo::stroke_width, _DrawInfo::text, and _TypeMetric::width.
Referenced by PolaroidImage().
MagickExport MagickBooleanType GetMultilineTypeMetrics | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
TypeMetric * | metrics, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 753 of file annotate.c.
References AcquireMagickResource(), _TypeMetric::ascent, CloneDrawInfo(), _TypeMetric::descent, DestroyDrawInfo(), DestroyString(), _DrawInfo::direction, _Image::filename, GetMagickModule, GetTypeMetrics(), _TypeMetric::height, HeightResource, ImageError, _DrawInfo::interline_spacing, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, RelinquishMagickMemory(), _DrawInfo::render, _DrawInfo::signature, _Image::signature, StringToStrings(), _DrawInfo::text, ThrowMagickException(), TraceEvent, UndefinedDirection, _TypeMetric::width, and WidthResource.
MagickExport MagickBooleanType GetTypeMetrics | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
TypeMetric * | metrics, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 894 of file annotate.c.
References AnnotateEvent, _TypeMetric::ascent, _TypeMetric::bounds, CloneDrawInfo(), _DrawInfo::debug, _TypeMetric::descent, DestroyDrawInfo(), _DrawInfo::direction, _Image::filename, GetMagickModule, _TypeMetric::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _TypeMetric::max_advance, _TypeMetric::origin, _TypeMetric::pixels_per_em, _DrawInfo::render, RenderType(), _DrawInfo::signature, _Image::signature, _DrawInfo::text, TraceEvent, UndefinedDirection, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _TypeMetric::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by AnnotateImage(), FormatMagickCaption(), GetMultilineTypeMetrics(), MontageImageList(), and RenderMVGContent().
static MagickBooleanType RenderFreetype | ( | Image * | , |
const DrawInfo * | , | ||
const char * | , | ||
const PointInfo * | , | ||
TypeMetric * | , | ||
ExceptionInfo * | |||
) |
Referenced by RenderType().
|
static |
Definition at line 1982 of file annotate.c.
References _DrawInfo::font, GetMagickModule, MissingDelegateWarning, RenderPostscript(), and ThrowMagickException().
static MagickBooleanType RenderPostscript | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const PointInfo * | offset, | ||
TypeMetric * | metrics, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2070 of file annotate.c.
References AcquireAuthenticCacheView(), AcquireImageInfo(), AcquireUniqueFileResource(), _DrawInfo::affine, _PixelInfo::alpha, _Image::alpha_trait, AnnotateEvent, _ImageInfo::antialias, _TypeMetric::ascent, _PixelInfo::blue, _TypeMetric::bounds, CastDoubleToLong(), CatchException(), ClampToQuantum(), CloneString(), _Image::columns, CompositeImage(), _DrawInfo::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, _TypeMetric::height, _RectangleInfo::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, RhoValue, _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, _TypeMetric::width, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _RectangleInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by RenderFreetype(), and RenderType().
|
static |
Definition at line 966 of file annotate.c.
References AcquireExceptionInfo(), CloneDrawInfo(), CloneString(), DestroyDrawInfo(), DestroyExceptionInfo(), DestroyString(), _DrawInfo::encoding, _TypeInfo::encoding, _DrawInfo::face, _TypeInfo::face, _DrawInfo::family, _TypeInfo::family, _DrawInfo::font, GetMagickModule, GetPolicyValue(), GetTypeInfo(), GetTypeInfoByFamily(), _TypeInfo::glyphs, IsPathAccessible(), LocaleCompare(), MagickFalse, _DrawInfo::metrics, _TypeInfo::metrics, RelinquishMagickMemory(), RenderFreetype(), RenderPostscript(), RenderX11(), _DrawInfo::stretch, StringToArgv(), _DrawInfo::style, SubstituteString(), ThrowMagickException(), TypeWarning, and _DrawInfo::weight.
Referenced by AnnotateImage(), and GetTypeMetrics().
static MagickBooleanType RenderX11 | ( | Image * | image, |
const DrawInfo * | draw_info, | ||
const PointInfo * | offset, | ||
TypeMetric * | metrics, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2334 of file annotate.c.
References ActivateSemaphoreInfo(), annotate_semaphore, LockSemaphoreInfo(), UnlockSemaphoreInfo(), and XRenderImage().
Referenced by RenderType().
|
inlinestatic |
Definition at line 592 of file annotate.c.
References AcquireString(), ConcatenateMagickString(), CopyMagickString(), DestroyString(), and GetUTFOctets().
Referenced by FormatMagickCaption().
|
static |
Definition at line 131 of file annotate.c.
Referenced by AnnotateComponentGenesis(), AnnotateComponentTerminus(), and RenderX11().