MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#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/image-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/token.h"
Go to the source code of this file.
Macros | |
#define | MagickPageSize(name, geometry) { (name), sizeof(name)-1, (geometry) } |
#define MagickPageSize | ( | name, | |
geometry | |||
) | { (name), sizeof(name)-1, (geometry) } |
MagickExport MagickStatusType GetGeometry | ( | const char * | geometry, |
ssize_t * | x, | ||
ssize_t * | y, | ||
size_t * | width, | ||
size_t * | height | ||
) |
Definition at line 97 of file geometry.c.
References AreaValue, AspectRatioValue, AspectValue, CopyMagickString(), DecimalValue, GreaterValue, HeightValue, LessValue, LocaleNCompare(), MagickPathExtent, MaximumValue, MinimumValue, NoValue, PercentValue, SeparatorValue, StringToDouble(), WidthValue, XNegative, XValue, YNegative, and YValue.
Referenced by GetMontageGeometry(), GetPageGeometry(), MontageImageList(), ParseAbsoluteGeometry(), and ParseMetaGeometry().
MagickExport char * GetPageGeometry | ( | const char * | page_geometry | ) |
Definition at line 368 of file geometry.c.
References AcquireString(), ConcatenateMagickString(), CopyMagickString(), FormatLocaleString(), GetGeometry(), GetMagickModule, GreaterValue, _RectangleInfo::height, IsEventLogging(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickPageSize, MagickPathExtent, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AcquireImage(), GetMagickProperty(), SetImageProperty(), and SyncImageSettings().
MagickExport void GravityAdjustGeometry | ( | const size_t | width, |
const size_t | height, | ||
const GravityType | gravity, | ||
RectangleInfo * | region | ||
) |
Definition at line 540 of file geometry.c.
References CenterGravity, EastGravity, ForgetGravity, _RectangleInfo::height, NorthEastGravity, NorthGravity, NorthWestGravity, SouthEastGravity, SouthGravity, SouthWestGravity, WestGravity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AppendImages(), GetEdgeBackgroundCensus(), GetEdgeBackgroundColor(), ParseGravityGeometry(), SmushImages(), SmushXGap(), and SmushYGap().
MagickExport MagickBooleanType IsGeometry | ( | const char * | geometry | ) |
Definition at line 619 of file geometry.c.
References MagickFalse, MagickTrue, NoValue, and ParseGeometry().
Referenced by GetPathComponent(), MorphologyImage(), OpenBlob(), and SetImageInfo().
MagickExport MagickBooleanType IsSceneGeometry | ( | const char * | geometry, |
const MagickBooleanType | pedantic | ||
) |
Definition at line 660 of file geometry.c.
References IsNaN, MAGICK_SSIZE_MAX, MAGICK_SSIZE_MIN, MagickFalse, MagickTrue, and StringToDouble().
Referenced by GetPathComponent(), ReadImage(), and SetImageInfo().
MagickExport MagickStatusType ParseAbsoluteGeometry | ( | const char * | geometry, |
RectangleInfo * | region_info | ||
) |
Definition at line 717 of file geometry.c.
References GetGeometry(), _RectangleInfo::height, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AcquireImage(), CropToFitImage(), DistortImage(), GetEdgeBoundingBox(), GetMagickProperty(), GradientImage(), MontageImageList(), ParseGravityGeometry(), ParsePageGeometry(), ReadImage(), ResetImagePage(), SetImageProperty(), SyncImageSettings(), ThumbnailImage(), TrimImage(), and WriteStreamImage().
MagickExport MagickStatusType ParseAffineGeometry | ( | const char * | geometry, |
AffineMatrix * | affine_matrix, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 758 of file geometry.c.
References GetAffineMatrix(), GetMagickModule, GetNextToken(), MagickEpsilon, MagickPathExtent, NoValue, OptionError, _AffineMatrix::rx, _AffineMatrix::ry, StringToDouble(), _AffineMatrix::sx, _AffineMatrix::sy, ThrowMagickException(), _AffineMatrix::tx, _AffineMatrix::ty, XValue, and YValue.
MagickExport MagickStatusType ParseGeometry | ( | const char * | geometry, |
GeometryInfo * | geometry_info | ||
) |
Definition at line 867 of file geometry.c.
References AreaValue, AspectRatioValue, AspectValue, _GeometryInfo::chi, ChiNegative, ChiValue, CopyMagickString(), DecimalValue, GreaterValue, LessValue, LocaleNCompare(), MagickPathExtent, MaximumValue, MinimumValue, NoValue, PercentValue, PerceptibleReciprocal(), _GeometryInfo::psi, PsiNegative, PsiValue, _GeometryInfo::rho, RhoValue, SeparatorValue, _GeometryInfo::sigma, SigmaValue, StringToDouble(), _GeometryInfo::xi, XiNegative, and XiValue.
Referenced by AcquireImage(), AnnotateImage(), BlackThresholdImage(), ColorizeImage(), CompositeImage(), DrawBoundingRectangles(), InitializeConstituteInfo(), IsGeometry(), ModulateImage(), ParseGravityGeometry(), ParseKernelArray(), ParseKernelName(), ParseMetaGeometry(), RenderPostscript(), SampleImage(), ScaleGeometryKernelInfo(), SetImageProperty(), SyncImageSettings(), SyncResolutionFromProperties(), TintImage(), WhiteBalanceImage(), and WhiteThresholdImage().
MagickExport MagickStatusType ParseGravityGeometry | ( | const Image * | image, |
const char * | geometry, | ||
RectangleInfo * | region_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1258 of file geometry.c.
References AspectRatioValue, _Image::columns, GetMagickModule, _Image::gravity, GravityAdjustGeometry(), GreaterValue, _RectangleInfo::height, IsEventLogging(), LessValue, LogMagickEvent(), MagickFalse, MaximumValue, NoValue, OptionError, _Image::page, ParseAbsoluteGeometry(), ParseGeometry(), PercentValue, _GeometryInfo::rho, RhoValue, _Image::rows, SetGeometry(), _GeometryInfo::sigma, SigmaValue, ThrowMagickException(), TraceEvent, UndefinedGravity, _RectangleInfo::width, _PointInfo::x, XValue, _PointInfo::y, and YValue.
Referenced by CropImageToTiles(), DrawPrimitive(), and MontageImageList().
MagickExport MagickStatusType ParseMetaGeometry | ( | const char * | geometry, |
ssize_t * | x, | ||
ssize_t * | y, | ||
size_t * | width, | ||
size_t * | height | ||
) |
Definition at line 1418 of file geometry.c.
References AreaValue, AspectRatioValue, AspectValue, GetGeometry(), GetMagickModule, GreaterValue, IsEventLogging(), LessValue, LogMagickEvent(), MagickEpsilon, MagickFalse, MagickMax, MinimumValue, NoValue, ParseGeometry(), PercentValue, PerceptibleReciprocal(), _GeometryInfo::rho, RhoValue, SetGeometryInfo(), _GeometryInfo::sigma, SigmaValue, TraceEvent, _PointInfo::x, and _PointInfo::y.
Referenced by MontageImageList(), ParsePageGeometry(), ParseRegionGeometry(), and PreviewImage().
MagickExport MagickStatusType ParsePageGeometry | ( | const Image * | image, |
const char * | geometry, | ||
RectangleInfo * | region_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1626 of file geometry.c.
References _Image::columns, GetMagickModule, _RectangleInfo::height, HeightValue, NoValue, OptionError, _Image::page, ParseAbsoluteGeometry(), ParseMetaGeometry(), PercentValue, _Image::rows, SeparatorValue, SetGeometry(), ThrowMagickException(), _RectangleInfo::width, WidthValue, _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 1695 of file geometry.c.
References GetMagickModule, _RectangleInfo::height, NoValue, OptionError, ParseMetaGeometry(), SetGeometry(), ThrowMagickException(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by MontageImageList(), ReadImage(), and TransformImage().
MagickExport void SetGeometry | ( | const Image * | image, |
RectangleInfo * | geometry | ||
) |
Definition at line 1734 of file geometry.c.
References _Image::columns, _Image::filename, GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::rows, _Image::signature, TraceEvent, and _RectangleInfo::width.
Referenced by AnnotateImage(), AppendImages(), CompareImages(), DrawPrimitive(), GetEdgeBoundingBox(), GetSimilarityMetric(), KuwaharaImage(), MontageImageList(), ParseGravityGeometry(), ParsePageGeometry(), ParseRegionGeometry(), PreviewImage(), ReadImage(), ShaveImage(), SimilarityImage(), SmushImages(), SmushXGap(), and SmushYGap().
MagickExport void SetGeometryInfo | ( | GeometryInfo * | geometry_info | ) |
Definition at line 1768 of file geometry.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickFalse, and TraceEvent.
Referenced by AnnotateImage(), CompositeImage(), ParseCSSColor(), ParseKernelArray(), ParseKernelName(), ParseMetaGeometry(), and ScaleGeometryKernelInfo().