#include "magick/studio.h"#include "magick/annotate.h"#include "magick/cache-view.h"#include "magick/client.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/composite.h"#include "magick/composite-private.h"#include "magick/constitute.h"#include "magick/draw.h"#include "magick/draw-private.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/gem.h"#include "magick/geometry.h"#include "magick/image-private.h"#include "magick/log.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/property.h"#include "magick/resource_.h"#include "magick/statistic.h"#include "magick/string_.h"#include "magick/transform.h"#include "magick/type.h"#include "magick/utility.h"#include "magick/xwindow-private.h"

Go to the source code of this file.
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 | AnnotateImage (Image *image, const DrawInfo *draw_info) |
| MagickExport long | FormatMagickCaption (Image *image, DrawInfo *draw_info, char *caption, TypeMetric *metrics) |
| 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 size_t | MagickMin (const size_t x, const size_t y) |
| static char * | EscapeParenthesis (const char *text) |
| MagickExport MagickBooleanType AnnotateImage | ( | Image * | image, | |
| const DrawInfo * | draw_info | |||
| ) |
Definition at line 159 of file annotate.c.
References _DrawInfo::affine, _DrawInfo::align, _TypeMetric::ascent, _TypeMetric::bounds, CenterAlign, CenterGravity, CloneDrawInfo(), CloneString(), _Image::debug, _DrawInfo::decorate, _TypeMetric::descent, DestroyDrawInfo(), DestroyString(), DirectClass, DrawImage(), EastGravity, _Image::filename, _DrawInfo::fill, FormatMagickString(), _DrawInfo::geometry, GetMagickModule, GetTypeMetrics(), _DrawInfo::gravity, _RectangleInfo::height, LeftAlign, LineThroughDecoration, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, NorthEastGravity, NorthGravity, NorthWestGravity, _PixelPacket::opacity, _TypeMetric::origin, OverlineDecoration, _Image::page, ParseGeometry(), ParsePageGeometry(), _DrawInfo::primitive, _GeometryInfo::psi, RelinquishMagickMemory(), RenderType(), RightAlign, _AffineMatrix::rx, _AffineMatrix::ry, SetGeometry(), SetGeometryInfo(), SetImageStorageClass(), _DrawInfo::signature, _Image::signature, SouthEastGravity, SouthGravity, SouthWestGravity, StaticGravity, StringToList(), _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, TraceEvent, TransparentOpacity, _AffineMatrix::tx, _AffineMatrix::ty, UndefinedGravity, _DrawInfo::undercolor, _TypeMetric::underline_position, _TypeMetric::underline_thickness, UnderlineDecoration, WestGravity, _TypeMetric::width, _RectangleInfo::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 * | text | ) | [static] |
Definition at line 1759 of file annotate.c.
References AcquireString(), MagickMin(), and MaxTextExtent.
Referenced by RenderPostscript().
| MagickExport long FormatMagickCaption | ( | Image * | image, | |
| DrawInfo * | draw_info, | |||
| char * | caption, | |||
| TypeMetric * | metrics | |||
| ) |
Definition at line 762 of file annotate.c.
References GetTypeMetrics(), MagickFalse, _DrawInfo::text, and _TypeMetric::width.
Referenced by PolaroidImage().
| MagickExport MagickBooleanType GetMultilineTypeMetrics | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| TypeMetric * | metrics | |||
| ) |
Definition at line 862 of file annotate.c.
References _TypeMetric::ascent, CloneDrawInfo(), _Image::debug, _TypeMetric::descent, DestroyDrawInfo(), DestroyString(), _Image::filename, GetMagickModule, GetTypeMetrics(), _TypeMetric::height, LogMagickEvent(), MagickFalse, MagickSignature, RelinquishMagickMemory(), _DrawInfo::render, ResetMagickMemory(), _DrawInfo::signature, _Image::signature, StringToList(), _DrawInfo::text, TraceEvent, and _TypeMetric::width.
| MagickExport MagickBooleanType GetTypeMetrics | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| TypeMetric * | metrics | |||
| ) |
Definition at line 974 of file annotate.c.
References AnnotateEvent, _TypeMetric::ascent, _TypeMetric::bounds, CloneDrawInfo(), _Image::debug, _TypeMetric::descent, DestroyDrawInfo(), _Image::filename, GetMagickModule, _TypeMetric::height, LogMagickEvent(), MagickFalse, MagickSignature, _TypeMetric::max_advance, _TypeMetric::origin, _TypeMetric::pixels_per_em, _DrawInfo::render, RenderType(), ResetMagickMemory(), _DrawInfo::signature, _Image::signature, _DrawInfo::text, TraceEvent, _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(), and MontageImageList().
| static size_t MagickMin | ( | const size_t | x, | |
| const size_t | y | |||
| ) | [inline, static] |
Definition at line 1752 of file annotate.c.
Referenced by AcquireCacheNexus(), AcquireImageColormap(), AcquireUniqueSymbolicLink(), ApplyEvaluateOperator(), BlobToFile(), CloneDiskToDiskPixels(), CloneDiskToMemoryPixels(), CloneMemoryToDiskPixels(), CloneMemoryToMemoryPixels(), CompareStringInfo(), ConfigureFileToStringInfo(), ConsolidateCrossings(), ConvertRGBToHSL(), ConvertRGBToHWB(), CopyDelegateFile(), Difference(), DrawAffineImage(), EscapeParenthesis(), FileToBlob(), FileToImage(), FxMin(), GenerateCoefficients(), GetImageChannelStatistics(), GetImageQuantumDepth(), GetTypeInfoByFamily(), HorizontalFilter(), HuffmanEncodeImage(), ImageToFile(), InjectImageBlob(), MontageImageList(), PosterizeImage(), PrintStringInfo(), QueryColorDatabase(), QueryMagickColorname(), ReadBlob(), ReadBlobStream(), ReadCacheRegion(), ReadRadonCell(), SeedPseudoRandomGenerator(), SetImageChannelDepth(), SetStringInfo(), StringToList(), TraceBezier(), TransformHSL(), VerticalFilter(), WriteCacheRegion(), and WriteRadonCell().
| static MagickBooleanType RenderFreetype | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| const char * | magick_unusedencoding, | |||
| const PointInfo * | offset, | |||
| TypeMetric * | metrics | |||
| ) | [static] |
Definition at line 1710 of file annotate.c.
References _Image::exception, _DrawInfo::font, GetMagickModule, MissingDelegateWarning, RenderPostscript(), and ThrowMagickException().
| static MagickBooleanType RenderFreetype | ( | Image * | , | |
| const DrawInfo * | , | |||
| const char * | , | |||
| const PointInfo * | , | |||
| TypeMetric * | ||||
| ) |
Referenced by RenderType().
| static MagickBooleanType RenderPostscript | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| const PointInfo * | offset, | |||
| TypeMetric * | metrics | |||
| ) |
Definition at line 1789 of file annotate.c.
References AcquireCacheView(), AcquireImageInfo(), AcquireUniqueFileResource(), _DrawInfo::affine, AnnotateEvent, _ImageInfo::antialias, _TypeMetric::ascent, _PixelPacket::blue, _TypeMetric::bounds, CatchException(), CloneString(), _Image::columns, CompositeImage(), _Image::debug, DefaultResolution, _ImageInfo::density, _DrawInfo::density, _TypeMetric::descent, DestroyCacheView(), DestroyImage(), DestroyImageInfo(), DestroyString(), EscapeParenthesis(), _Image::exception, ExpandAffine(), fdopen, _ImageInfo::filename, FileOpenError, _DrawInfo::fill, _DrawInfo::font, FormatMagickString(), GetCacheViewAuthenticPixels(), GetFillColor(), GetImageBoundingBox(), GetMagickModule, _PixelPacket::green, _TypeMetric::height, _RectangleInfo::height, LogMagickEvent(), MagickFalse, MagickTrue, _Image::matte, _TypeMetric::max_advance, MaxTextExtent, _PixelPacket::opacity, OpaqueAlphaChannel, OverCompositeOp, _ImageInfo::page, ParseGeometry(), PixelIntensityToQuantum(), _TypeMetric::pixels_per_em, _DrawInfo::pointsize, QuantumRange, ReadImage(), _PixelPacket::red, RelinquishUniqueFileResource(), _DrawInfo::render, _GeometryInfo::rho, RoundToQuantum(), _Image::rows, _AffineMatrix::rx, _AffineMatrix::ry, SetImageAlphaChannel(), _GeometryInfo::sigma, SigmaValue, _AffineMatrix::sx, _AffineMatrix::sy, SyncCacheViewAuthenticPixels(), _DrawInfo::text, _DrawInfo::text_antialias, ThrowFileException, TransformImage(), TransparentOpacity, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _TypeMetric::width, _RectangleInfo::width, _RectangleInfo::x, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _RectangleInfo::y, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
Referenced by RenderFreetype().
| static MagickBooleanType RenderType | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| const PointInfo * | offset, | |||
| TypeMetric * | metrics | |||
| ) | [static] |
Definition at line 1043 of file annotate.c.
References CloneDrawInfo(), CloneString(), DestroyDrawInfo(), _TypeInfo::encoding, _DrawInfo::encoding, _Image::exception, _TypeInfo::face, _DrawInfo::face, _DrawInfo::family, _DrawInfo::font, GetMagickModule, GetTypeInfo(), GetTypeInfoByFamily(), _TypeInfo::glyphs, IsPathAccessible(), MagickFalse, _DrawInfo::metrics, _TypeInfo::metrics, RenderFreetype(), RenderX11(), _DrawInfo::stretch, _DrawInfo::style, ThrowMagickException(), TypeWarning, and _DrawInfo::weight.
Referenced by AnnotateImage(), and GetTypeMetrics().
| static MagickBooleanType RenderX11 | ( | Image * | image, | |
| const DrawInfo * | draw_info, | |||
| const PointInfo * | offset, | |||
| TypeMetric * | metrics | |||
| ) |
Definition at line 2232 of file annotate.c.
References _Image::exception, _Image::filename, GetMagickModule, MagickFalse, MissingDelegateError, and ThrowMagickException().
Referenced by RenderType().
1.5.7.1