MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.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/colormap.h"
#include "MagickCore/colormap-private.h"
#include "MagickCore/colorspace.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/effect.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/histogram.h"
#include "MagickCore/identify.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/magick.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/random_.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/segment.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
Go to the source code of this file.
Data Structures | |
struct | _EdgeInfo |
struct | _CaliperInfo |
Typedefs | |
typedef struct _EdgeInfo | EdgeInfo |
typedef struct _CaliperInfo | CaliperInfo |
typedef struct _CaliperInfo CaliperInfo |
Definition at line 1156 of file attribute.c.
References RadiansToDegrees(), _PointInfo::x, and _PointInfo::y.
Referenced by GetImageMinimumBoundingBox().
Definition at line 1164 of file attribute.c.
References _PointInfo::x, and _PointInfo::y.
Referenced by getFeretDiameter(), and getProjection().
|
static |
Definition at line 136 of file attribute.c.
References AcquireVirtualCacheView(), AllCompliance, _Image::columns, CropImage(), DestroyCacheView(), DestroyImage(), EastGravity, GetCacheViewVirtualPixels(), GetImageArtifact(), GetPixelChannels(), GetPixelInfoPixel(), GravityAdjustGeometry(), _RectangleInfo::height, IsFuzzyEquivalencePixelInfo(), MagickFalse, NorthEastGravity, NorthGravity, NorthWestGravity, QueryColorCompliance(), _Image::rows, SouthEastGravity, SouthGravity, SouthWestGravity, WestGravity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetEdgeBoundingBox().
|
static |
Definition at line 599 of file attribute.c.
References AcquireVirtualCacheView(), AllCompliance, _Image::columns, CropImage(), DestroyCacheView(), DestroyImage(), EastGravity, GetCacheViewVirtualPixels(), GetImageArtifact(), GetPixelChannels(), GetPixelInfoPixel(), GravityAdjustGeometry(), _RectangleInfo::height, IsFuzzyEquivalencePixelInfo(), MagickFalse, NorthGravity, QueryColorCompliance(), _Image::rows, SouthGravity, WestGravity, and _RectangleInfo::width.
Referenced by GetImageConvexHull().
|
static |
Definition at line 251 of file attribute.c.
References AcquireVirtualCacheView(), _EdgeInfo::bottom, CloneImage(), DestroyCacheView(), DestroyImage(), EastGravity, _Image::filename, GetEdgeBackgroundCensus(), GetImageArtifact(), GetMagickModule, GetMinEdgeBackgroundCensus(), _RectangleInfo::height, IsEventLogging(), _EdgeInfo::left, LogMagickEvent(), MagickCoreSignature, MagickEpsilon, MagickFalse, MagickMax, MagickMin, MagickTrue, NorthEastGravity, NorthGravity, NorthWestGravity, OptionWarning, _Image::page, ParseAbsoluteGeometry(), _EdgeInfo::right, SetGeometry(), _Image::signature, SouthGravity, SouthWestGravity, StringToDouble(), ThrowMagickException(), _EdgeInfo::top, TraceEvent, WestGravity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetImageBoundingBox().
Definition at line 1187 of file attribute.c.
References getDistance(), INFINITY, MagickEpsilon, _PointInfo::x, and _PointInfo::y.
Referenced by GetImageMinimumBoundingBox().
MagickExport RectangleInfo GetImageBoundingBox | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 391 of file attribute.c.
References AcquireString(), AcquireVirtualCacheView(), _Image::columns, DestroyCacheView(), DestroyString(), _Image::filename, GetCacheViewVirtualPixels(), GetEdgeBoundingBox(), GetImageArtifact(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), _RectangleInfo::height, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), LocaleCompare(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OptionWarning, _Image::rows, _Image::signature, StringToken(), ThrowMagickException(), TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DeskewImage(), GetMagickProperty(), GetMagickPropertyLetter(), RenderPostscript(), and TrimImage().
MagickExport PointInfo * GetImageConvexHull | ( | const Image * | image, |
size_t * | number_vertices, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 765 of file attribute.c.
References AcquireQuantumMemory(), AcquireVirtualCacheView(), AcquireVirtualMemory(), _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetEdgeBackgroundColor(), GetMagickModule, GetPixelChannels(), GetPixelInfoPixel(), GetVirtualMemoryBlob(), IsEventLogging(), IsFuzzyEquivalencePixelInfo(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, RelinquishVirtualMemory(), _Image::rows, _Image::signature, TraceConvexHull(), TraceEvent, _PointInfo::x, and _PointInfo::y.
Referenced by GetImageMinimumBoundingBox(), GetMagickProperty(), and IdentifyImage().
MagickExport size_t GetImageDepth | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 889 of file attribute.c.
References AcquireQuantumMemory(), AcquireVirtualCacheView(), _Image::alpha_trait, _PixelInfo::blue, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, DestroyCacheView(), DisableMSCWarning, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetMagickResourceLimit(), GetOpenMPThreadId(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetQuantumRange(), _PixelInfo::green, IsEventLogging(), IsPixelAtDepth(), LogMagickEvent(), magick_restrict, MAGICKCORE_QUANTUM_DEPTH, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, PseudoClass, QuantumRange, _PixelInfo::red, RelinquishMagickMemory(), ResourceLimitFatalError, RestoreMSCWarning, _Image::rows, ScaleAnyToQuantum(), ScaleQuantumToAny(), _Image::signature, _Image::storage_class, ThreadResource, ThrowFatalException, TraceEvent, UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by ExecuteRPN(), GetMagickProperty(), IdentifyImage(), and ImageStat().
MagickExport PointInfo * GetImageMinimumBoundingBox | ( | Image * | image, |
size_t * | number_vertices, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1201 of file attribute.c.
References AcquireQuantumMemory(), _CaliperInfo::area, _Image::columns, _Image::filename, FormatImageProperty(), getAngle(), getFeretDiameter(), GetImageArtifact(), GetImageConvexHull(), GetMagickModule, GetMagickPrecision(), getProjection(), _CaliperInfo::height, IsEventLogging(), LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMax, MagickMin, MagickPI, _CaliperInfo::p, PerceptibleReciprocal(), _CaliperInfo::projection, _CaliperInfo::q, RadiansToDegrees(), RelinquishMagickMemory(), _Image::rows, _Image::signature, TraceEvent, _CaliperInfo::v, _CaliperInfo::width, _PointInfo::x, and _PointInfo::y.
Referenced by GetMagickProperty(), and IdentifyImage().
MagickExport size_t GetImageQuantumDepth | ( | const Image * | image, |
const MagickBooleanType | constrain | ||
) |
Definition at line 1459 of file attribute.c.
References _Image::depth, MAGICKCORE_QUANTUM_DEPTH, MagickFalse, and MagickMin.
MagickExport ImageType GetImageType | ( | const Image * | image | ) |
Definition at line 1508 of file attribute.c.
References _Image::alpha_trait, BilevelType, CMYKColorspace, ColorSeparationAlphaType, ColorSeparationType, _Image::colorspace, GrayscaleAlphaType, GrayscaleType, IsImageGray(), IsImageMonochrome(), IsPaletteImage(), MagickCoreSignature, MagickFalse, PaletteAlphaType, PaletteType, _Image::signature, TrueColorAlphaType, TrueColorType, and UndefinedPixelTrait.
|
inlinestatic |
Definition at line 241 of file attribute.c.
References _EdgeInfo::bottom, _EdgeInfo::left, MagickMin, _EdgeInfo::right, and _EdgeInfo::top.
Referenced by GetEdgeBoundingBox().
Definition at line 1173 of file attribute.c.
References getDistance(), INFINITY, MagickEpsilon, _PointInfo::x, and _PointInfo::y.
Referenced by GetImageMinimumBoundingBox().
MagickExport ImageType IdentifyImageGray | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1563 of file attribute.c.
References AcquireVirtualCacheView(), _Image::alpha_trait, BilevelType, _Image::colorspace, _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannels(), GrayscaleAlphaType, GrayscaleType, IsEventLogging(), IsImageGray(), IsPixelGray(), IsPixelMonochrome(), IssRGBCompatibleColorspace(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::rows, _Image::signature, TraceEvent, _Image::type, UndefinedPixelTrait, and UndefinedType.
Referenced by IdentifyImageType(), QuantizeImage(), and SetImageGray().
MagickExport MagickBooleanType IdentifyImageMonochrome | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1644 of file attribute.c.
References AcquireVirtualCacheView(), BilevelType, _Image::colorspace, _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannels(), IsEventLogging(), IsPixelMonochrome(), IssRGBCompatibleColorspace(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::rows, _Image::signature, TraceEvent, and _Image::type.
Referenced by SetImageMonochrome().
MagickExport ImageType IdentifyImageType | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1725 of file attribute.c.
References _Image::alpha_trait, CMYKColorspace, ColorSeparationAlphaType, ColorSeparationType, _Image::colorspace, _Image::filename, GetMagickModule, IdentifyImageGray(), IdentifyPaletteImage(), IsEventLogging(), IsGrayImageType(), LogMagickEvent(), MagickCoreSignature, MagickFalse, PaletteAlphaType, PaletteType, _Image::signature, TraceEvent, TrueColorAlphaType, TrueColorType, and UndefinedPixelTrait.
Referenced by ContrastStretchImage(), GetImageColorspaceType(), GetMagickProperty(), and IdentifyImage().
MagickExport MagickBooleanType IsImageGray | ( | const Image * | image | ) |
Definition at line 1778 of file attribute.c.
References IsGrayImageType(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::signature, and _Image::type.
Referenced by ForwardFourierTransformImage(), GetImageType(), IdentifyImageGray(), InverseFourierTransformImage(), and SetImageGray().
MagickExport MagickBooleanType IsImageMonochrome | ( | const Image * | image | ) |
Definition at line 1809 of file attribute.c.
References BilevelType, MagickCoreSignature, MagickFalse, MagickTrue, _Image::signature, and _Image::type.
Referenced by GetImageType(), and SetImageMonochrome().
MagickExport MagickBooleanType IsImageOpaque | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1846 of file attribute.c.
References AcquireVirtualCacheView(), _Image::alpha_trait, _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannels(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlpha, _Image::rows, _Image::signature, TraceEvent, and UndefinedPixelTrait.
Referenced by GetMagickProperty().
Definition at line 591 of file attribute.c.
References _PointInfo::x, and _PointInfo::y.
Referenced by TraceConvexHull().
MagickExport MagickBooleanType SetImageDepth | ( | Image * | image, |
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1918 of file attribute.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), _PixelInfo::alpha, _PixelInfo::blue, ClampPixel(), _Image::colormap, _Image::colors, _Image::columns, _Image::depth, DestroyCacheView(), DisableMSCWarning, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetQuantumRange(), _PixelInfo::green, IsEventLogging(), LogMagickEvent(), magick_restrict, MAGICKCORE_QUANTUM_DEPTH, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, PseudoClass, QuantumRange, _PixelInfo::red, RelinquishMagickMemory(), ResourceLimitFatalError, RestoreMSCWarning, _Image::rows, ScaleAnyToQuantum(), ScaleQuantumToAny(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowFatalException, TraceEvent, and UpdatePixelTrait.
MagickExport MagickBooleanType SetImageType | ( | Image * | image, |
const ImageType | type, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2134 of file attribute.c.
References AcquireImageInfo(), AcquireQuantizeInfo(), _Image::alpha_trait, AlphaChannel, BilevelImage(), BilevelType, CMYKColorspace, _Image::colors, ColorSeparationAlphaType, ColorSeparationType, _QuantizeInfo::colorspace, DestroyImageInfo(), DestroyQuantizeInfo(), DirectClass, _Image::dither, _ImageInfo::dither, GetImageArtifact(), GetMagickModule, GRAYColorspace, GrayscaleAlphaType, GrayscaleType, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NormalizeImage(), _QuantizeInfo::number_colors, OpaqueAlphaChannel, OptimizeType, PaletteAlphaType, PaletteBilevelAlphaType, PaletteType, QuantizeImage(), QuantumRange, SetImageAlphaChannel(), SetImageChannelMask(), SetImageOption(), SetImageStorageClass(), _Image::signature, sRGBColorspace, _Image::storage_class, TraceEvent, TransformImageColorspace(), TransparentColorspace, TrueColorAlphaType, TrueColorType, _Image::type, UndefinedPixelTrait, and UndefinedType.
Referenced by CycleColormapImage(), and HuffmanEncodeImage().
void TraceConvexHull | ( | PointInfo * | vertices, |
size_t | number_vertices, | ||
PointInfo *** | monotone_chain, | ||
size_t * | chain_length | ||
) |
Definition at line 729 of file attribute.c.
References LexicographicalOrder().
Referenced by GetImageConvexHull().