#include "magick/studio.h"#include "magick/constitute.h"#include "magick/draw.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/memory_.h"#include "magick/string_.h"#include "magick/token.h"
Go to the source code of this file.
Functions | |
| MagickExport MagickStatusType | GetGeometry (const char *geometry, long *x, long *y, unsigned long *width, unsigned long *height) |
| MagickExport char * | GetPageGeometry (const char *page_geometry) |
| MagickExport void | GravityAdjustGeometry (const unsigned long width, const unsigned long height, const GravityType gravity, RectangleInfo *region) |
| MagickExport MagickBooleanType | IsGeometry (const char *geometry) |
| MagickExport MagickBooleanType | IsSceneGeometry (const char *geometry, const MagickBooleanType pedantic) |
| MagickExport MagickStatusType | ParseAbsoluteGeometry (const char *geometry, RectangleInfo *region_info) |
| MagickExport MagickStatusType | ParseAffineGeometry (const char *geometry, AffineMatrix *affine_matrix, ExceptionInfo *exception) |
| MagickExport MagickStatusType | ParseGeometry (const char *geometry, GeometryInfo *geometry_info) |
| MagickExport MagickStatusType | ParseGravityGeometry (const Image *image, const char *geometry, RectangleInfo *region_info, ExceptionInfo *exception) |
| static unsigned long | MagickMax (const unsigned long x, const unsigned long y) |
| MagickExport MagickStatusType | ParseMetaGeometry (const char *geometry, long *x, long *y, unsigned long *width, unsigned long *height) |
| MagickExport MagickStatusType | ParsePageGeometry (const Image *image, const char *geometry, RectangleInfo *region_info, ExceptionInfo *exception) |
| MagickExport MagickStatusType | ParseRegionGeometry (const Image *image, const char *geometry, RectangleInfo *region_info, ExceptionInfo *exception) |
| MagickExport void | SetGeometry (const Image *image, RectangleInfo *geometry) |
| MagickExport void | SetGeometryInfo (GeometryInfo *geometry_info) |
| MagickExport MagickStatusType GetGeometry | ( | const char * | geometry, | |
| long * | x, | |||
| long * | y, | |||
| unsigned long * | width, | |||
| unsigned long * | height | |||
| ) |
Definition at line 84 of file geometry.c.
References AreaValue, AspectValue, CopyMagickString(), GreaterValue, HeightValue, LessValue, LocaleNCompare(), MaxTextExtent, MinimumValue, NoValue, PercentValue, WidthValue, XNegative, XValue, YNegative, and YValue.
Referenced by GetMontageGeometry(), GetPageGeometry(), MontageImageList(), ParseAbsoluteGeometry(), and ParseMetaGeometry().
| MagickExport char* GetPageGeometry | ( | const char * | page_geometry | ) |
Definition at line 272 of file geometry.c.
References AcquireString(), ConcatenateMagickString(), CopyMagickString(), GetGeometry(), GetMagickModule, GreaterValue, _RectangleInfo::height, LocaleNCompare(), LogMagickEvent(), MaxTextExtent, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AcquireImage(), PostscriptGeometry(), SetImageProperty(), SyncImageSettings(), and XGetScreenDensity().
| MagickExport void GravityAdjustGeometry | ( | const unsigned long | width, | |
| const unsigned long | height, | |||
| const GravityType | gravity, | |||
| RectangleInfo * | region | |||
| ) |
Definition at line 420 of file geometry.c.
References CenterGravity, EastGravity, ForgetGravity, _RectangleInfo::height, NorthEastGravity, NorthGravity, NorthWestGravity, SouthEastGravity, SouthGravity, SouthWestGravity, StaticGravity, WestGravity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AppendImages(), and ParseGravityGeometry().
| MagickExport MagickBooleanType IsGeometry | ( | const char * | geometry | ) |
Definition at line 501 of file geometry.c.
References MagickFalse, MagickTrue, NoValue, and ParseGeometry().
Referenced by GetPathComponent(), and SetImageInfo().
| MagickExport MagickBooleanType IsSceneGeometry | ( | const char * | geometry, | |
| const MagickBooleanType | pedantic | |||
| ) |
Definition at line 544 of file geometry.c.
References MagickFalse, and MagickTrue.
Referenced by GetPathComponent(), ReadImage(), and SetImageInfo().
| static unsigned long MagickMax | ( | const unsigned long | x, | |
| const unsigned long | y | |||
| ) | [inline, static] |
Definition at line 1065 of file geometry.c.
Referenced by ParseMetaGeometry().
| MagickExport MagickStatusType ParseAbsoluteGeometry | ( | const char * | geometry, | |
| RectangleInfo * | region_info | |||
| ) |
Definition at line 591 of file geometry.c.
References GetGeometry(), _RectangleInfo::height, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AcquireImage(), CropToFitImage(), DistortImage(), MontageImageList(), ParseGravityGeometry(), ParsePageGeometry(), ReadImage(), ResetImagePage(), SetImageProperty(), SyncImageSettings(), ThumbnailImage(), and WriteStreamImage().
| MagickExport MagickStatusType ParseAffineGeometry | ( | const char * | geometry, | |
| AffineMatrix * | affine_matrix, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 630 of file geometry.c.
References GetAffineMatrix(), GetMagickModule, GetMagickToken(), MagickEpsilon, MaxTextExtent, NoValue, OptionError, _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sx, _AffineMatrix::sy, ThrowMagickException(), _AffineMatrix::tx, _AffineMatrix::ty, XValue, and YValue.
| MagickExport MagickStatusType ParseGeometry | ( | const char * | geometry, | |
| GeometryInfo * | geometry_info | |||
| ) |
Definition at line 703 of file geometry.c.
References AreaValue, AspectValue, _GeometryInfo::chi, ChiNegative, ChiValue, CopyMagickString(), DecimalValue, GreaterValue, LessValue, LocaleNCompare(), MaxTextExtent, MinimumValue, NoValue, PercentValue, _GeometryInfo::psi, PsiNegative, PsiValue, _GeometryInfo::rho, RhoValue, _GeometryInfo::sigma, SigmaValue, _GeometryInfo::xi, XiNegative, and XiValue.
Referenced by AcquireImage(), AnnotateImage(), BlackThresholdImageChannel(), ChannelThresholdImage(), ColorizeImage(), CompositeImageChannel(), ContrastStretchImage(), DrawBoundingRectangles(), FxGetSymbol(), GammaImage(), IsGeometry(), LevelImage(), ModulateImage(), ParseGravityGeometry(), ParseMetaGeometry(), QueryMagickColor(), RandomThresholdImageChannel(), ReadImage(), RenderPostscript(), SetImageProperty(), SigmoidalContrastImage(), SyncImageSettings(), ThresholdImageChannel(), TintImage(), WhiteThresholdImageChannel(), and XGetPixelPacket().
| MagickExport MagickStatusType ParseGravityGeometry | ( | const Image * | image, | |
| const char * | geometry, | |||
| RectangleInfo * | region_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 971 of file geometry.c.
References _Image::columns, GetMagickModule, _Image::gravity, GravityAdjustGeometry(), _RectangleInfo::height, NoValue, OptionError, _Image::page, ParseAbsoluteGeometry(), ParseGeometry(), PercentValue, _GeometryInfo::rho, RhoValue, _Image::rows, SetGeometry(), _GeometryInfo::sigma, SigmaValue, ThrowMagickException(), UndefinedGravity, _RectangleInfo::width, _PointInfo::x, XValue, _PointInfo::y, and YValue.
Referenced by DrawPrimitive(), MontageImageList(), and TransformImage().
| MagickExport MagickStatusType ParseMetaGeometry | ( | const char * | geometry, | |
| long * | x, | |||
| long * | y, | |||
| unsigned long * | width, | |||
| unsigned long * | height | |||
| ) |
Definition at line 1073 of file geometry.c.
References AreaValue, AspectValue, GetGeometry(), GetMagickModule, GreaterValue, LessValue, LogMagickEvent(), MagickMax(), MinimumValue, NoValue, ParseGeometry(), PercentValue, _GeometryInfo::rho, RhoValue, SetGeometryInfo(), _GeometryInfo::sigma, SigmaValue, TraceEvent, _PointInfo::x, and _PointInfo::y.
Referenced by GetMagickGeometry(), MontageImageList(), ParseImageGeometry(), ParsePageGeometry(), ParseRegionGeometry(), ParseSizeGeometry(), and PreviewImage().
| MagickExport MagickStatusType ParsePageGeometry | ( | const Image * | image, | |
| const char * | geometry, | |||
| RectangleInfo * | region_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1255 of file geometry.c.
References _Image::columns, GetMagickModule, _RectangleInfo::height, NoValue, OptionError, _Image::page, ParseAbsoluteGeometry(), ParseMetaGeometry(), PercentValue, _Image::rows, SetGeometry(), ThrowMagickException(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AnnotateImage(), GetImageGeometry(), and XMakeImage().
| MagickExport MagickStatusType ParseRegionGeometry | ( | const Image * | image, | |
| const char * | geometry, | |||
| RectangleInfo * | region_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1312 of file geometry.c.
References GetMagickModule, _RectangleInfo::height, NoValue, OptionError, ParseMetaGeometry(), SetGeometry(), ThrowMagickException(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetImageGeometry(), MontageImageList(), ReadImage(), and TransformImage().
| MagickExport void SetGeometry | ( | const Image * | image, | |
| RectangleInfo * | geometry | |||
| ) |
Definition at line 1351 of file geometry.c.
References _Image::columns, _Image::debug, _Image::filename, GetMagickModule, _RectangleInfo::height, LogMagickEvent(), MagickFalse, MagickSignature, ResetMagickMemory(), _Image::rows, _Image::signature, TraceEvent, and _RectangleInfo::width.
Referenced by AnnotateImage(), AppendImages(), DrawPrimitive(), ExtractSubimageFromImage(), MontageImageList(), ParseGravityGeometry(), ParsePageGeometry(), ParseRegionGeometry(), ParseSizeGeometry(), PreviewImage(), ShaveImage(), and SimilarityImage().
| MagickExport void SetGeometryInfo | ( | GeometryInfo * | geometry_info | ) |
Definition at line 1385 of file geometry.c.
References GetMagickModule, LogMagickEvent(), ResetMagickMemory(), and TraceEvent.
Referenced by AnnotateImage(), CompositeImageChannel(), ParseMetaGeometry(), and QueryMagickColor().
1.6.1