|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/constitute.h"#include "MagickCore/draw.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/geometry.h"#include "MagickCore/memory_.h"#include "MagickCore/string_.h"#include "MagickCore/string-private.h"#include "MagickCore/token.h"
Go to the source code of this file.
Functions | |
| MagickExport MagickStatusType | GetGeometry (const char *geometry, ssize_t *x, ssize_t *y, size_t *width, size_t *height) |
| MagickExport char * | GetPageGeometry (const char *page_geometry) |
| MagickExport void | GravityAdjustGeometry (const size_t width, const size_t 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 size_t | MagickMax (const size_t x, const size_t y) |
| MagickExport MagickStatusType | ParseMetaGeometry (const char *geometry, ssize_t *x, ssize_t *y, size_t *width, size_t *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, |
| ssize_t * | x, | ||
| ssize_t * | y, | ||
| size_t * | width, | ||
| size_t * | height | ||
| ) |
Definition at line 85 of file geometry.c.
References MaxTextExtent, NoValue, CopyMagickString(), PercentValue, AspectValue, LessValue, GreaterValue, MinimumValue, AreaValue, StringToDouble(), LocaleNCompare(), WidthValue, HeightValue, XNegative, XValue, YNegative, and YValue.
Referenced by GetPageGeometry(), ParseAbsoluteGeometry(), ParseMetaGeometry(), GetMontageGeometry(), and MontageImageList().
| MagickExport char* GetPageGeometry | ( | const char * | page_geometry | ) |
Definition at line 281 of file geometry.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, AcquireString(), LocaleNCompare(), CopyMagickString(), MaxTextExtent, ConcatenateMagickString(), GetGeometry(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, _RectangleInfo::height, and GreaterValue.
Referenced by AcquireImage(), SyncImageSettings(), and SetImageProperty().
| MagickExport void GravityAdjustGeometry | ( | const size_t | width, |
| const size_t | height, | ||
| const GravityType | gravity, | ||
| RectangleInfo * | region | ||
| ) |
Definition at line 427 of file geometry.c.
References _RectangleInfo::height, _RectangleInfo::width, NorthEastGravity, EastGravity, SouthEastGravity, _RectangleInfo::x, NorthGravity, SouthGravity, CenterGravity, StaticGravity, ForgetGravity, NorthWestGravity, WestGravity, SouthWestGravity, and _RectangleInfo::y.
Referenced by ParseGravityGeometry(), AppendImages(), SmushXGap(), SmushYGap(), and SmushImages().
| MagickExport MagickBooleanType IsGeometry | ( | const char * | geometry | ) |
Definition at line 508 of file geometry.c.
References MagickFalse, ParseGeometry(), NoValue, and MagickTrue.
Referenced by SetImageInfo(), and GetPathComponent().
| MagickExport MagickBooleanType IsSceneGeometry | ( | const char * | geometry, |
| const MagickBooleanType | pedantic | ||
| ) |
Definition at line 551 of file geometry.c.
References MagickFalse, StringToDouble(), and MagickTrue.
Referenced by ReadImage(), SetImageInfo(), and GetPathComponent().
| static size_t MagickMax | ( | const size_t | x, |
| const size_t | y | ||
| ) | [inline, static] |
Definition at line 1135 of file geometry.c.
Referenced by ParseMetaGeometry().
| MagickExport MagickStatusType ParseAbsoluteGeometry | ( | const char * | geometry, |
| RectangleInfo * | region_info | ||
| ) |
Definition at line 603 of file geometry.c.
References GetGeometry(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, and _RectangleInfo::height.
Referenced by ReadImage(), DistortImage(), ParseGravityGeometry(), ParsePageGeometry(), AcquireImage(), ResetImagePage(), SyncImageSettings(), MontageImageList(), SetImageProperty(), ThumbnailImage(), CropToFitImage(), and WriteStreamImage().
| MagickExport MagickStatusType ParseAffineGeometry | ( | const char * | geometry, |
| AffineMatrix * | affine_matrix, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 644 of file geometry.c.
References MaxTextExtent, GetAffineMatrix(), NoValue, GetMagickToken(), _AffineMatrix::sx, StringToDouble(), _AffineMatrix::rx, _AffineMatrix::ry, _AffineMatrix::sy, _AffineMatrix::tx, XValue, _AffineMatrix::ty, YValue, MagickEpsilon, ThrowMagickException(), GetMagickModule, and OptionError.
| MagickExport MagickStatusType ParseGeometry | ( | const char * | geometry, |
| GeometryInfo * | geometry_info | ||
| ) |
Definition at line 746 of file geometry.c.
References MaxTextExtent, NoValue, CopyMagickString(), PercentValue, AspectValue, LessValue, GreaterValue, MinimumValue, AreaValue, DecimalValue, StringToDouble(), LocaleNCompare(), RhoValue, _GeometryInfo::rho, SigmaValue, _GeometryInfo::sigma, XiValue, XiNegative, _GeometryInfo::xi, PsiValue, PsiNegative, _GeometryInfo::psi, ChiValue, ChiNegative, and _GeometryInfo::chi.
Referenced by AnnotateImage(), RenderPostscript(), QueryColorCompliance(), CompositeImage(), ReadImage(), DrawBoundingRectangles(), AdaptiveLevelImage(), ModulateImage(), ColorizeImage(), FxGetSymbol(), TintImage(), IsGeometry(), ParseGravityGeometry(), ParseMetaGeometry(), AcquireImage(), SyncImageSettings(), ParseKernelArray(), ParseKernelName(), ScaleGeometryKernelInfo(), SetImageProperty(), BlackThresholdImage(), RandomThresholdImage(), and WhiteThresholdImage().
| MagickExport MagickStatusType ParseGravityGeometry | ( | const Image * | image, |
| const char * | geometry, | ||
| RectangleInfo * | region_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1029 of file geometry.c.
References SetGeometry(), _Image::page, _RectangleInfo::width, _RectangleInfo::height, ParseAbsoluteGeometry(), NoValue, ThrowMagickException(), GetMagickModule, OptionError, PercentValue, _Image::gravity, UndefinedGravity, XValue, YValue, ParseGeometry(), _PointInfo::x, _GeometryInfo::rho, RhoValue, _PointInfo::y, _GeometryInfo::sigma, SigmaValue, _Image::columns, _Image::rows, and GravityAdjustGeometry().
Referenced by DrawPrimitive(), MontageImageList(), and CropImageToTiles().
| MagickExport MagickStatusType ParseMetaGeometry | ( | const char * | geometry, |
| ssize_t * | x, | ||
| ssize_t * | y, | ||
| size_t * | width, | ||
| size_t * | height | ||
| ) |
Definition at line 1143 of file geometry.c.
References NoValue, LogMagickEvent(), TraceEvent, GetMagickModule, SetGeometryInfo(), GetGeometry(), PercentValue, ParseGeometry(), _PointInfo::x, _GeometryInfo::rho, RhoValue, _PointInfo::y, _GeometryInfo::sigma, SigmaValue, AspectValue, MinimumValue, MagickMax(), GreaterValue, LessValue, and AreaValue.
Referenced by PreviewImage(), ParsePageGeometry(), ParseRegionGeometry(), and MontageImageList().
| MagickExport MagickStatusType ParsePageGeometry | ( | const Image * | image, |
| const char * | geometry, | ||
| RectangleInfo * | region_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1324 of file geometry.c.
References SetGeometry(), _Image::page, _RectangleInfo::width, _RectangleInfo::height, ParseAbsoluteGeometry(), NoValue, ThrowMagickException(), GetMagickModule, OptionError, PercentValue, _Image::columns, _Image::rows, ParseMetaGeometry(), _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AnnotateImage().
| MagickExport MagickStatusType ParseRegionGeometry | ( | const Image * | image, |
| const char * | geometry, | ||
| RectangleInfo * | region_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1385 of file geometry.c.
References SetGeometry(), ParseMetaGeometry(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, _RectangleInfo::height, NoValue, ThrowMagickException(), GetMagickModule, and OptionError.
Referenced by ReadImage(), MontageImageList(), and TransformImage().
| MagickExport void SetGeometry | ( | const Image * | image, |
| RectangleInfo * | geometry | ||
| ) |
Definition at line 1424 of file geometry.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, ResetMagickMemory(), _RectangleInfo::width, _Image::columns, _RectangleInfo::height, and _Image::rows.
Referenced by AnnotateImage(), GetSimilarityMetric(), SimilarityImage(), DrawPrimitive(), PreviewImage(), ParseGravityGeometry(), ParsePageGeometry(), ParseRegionGeometry(), AppendImages(), SmushXGap(), SmushYGap(), SmushImages(), MontageImageList(), and ShaveImage().
| MagickExport void SetGeometryInfo | ( | GeometryInfo * | geometry_info | ) |
Definition at line 1458 of file geometry.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, and ResetMagickMemory().
Referenced by AnnotateImage(), QueryColorCompliance(), CompositeImage(), ParseMetaGeometry(), ParseKernelArray(), ParseKernelName(), and ScaleGeometryKernelInfo().