#include "magick/studio.h"#include "magick/attribute.h"#include "magick/blob.h"#include "magick/blob-private.h"#include "magick/cache.h"#include "magick/cache-view.h"#include "magick/client.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/colormap.h"#include "magick/colormap-private.h"#include "magick/colorspace.h"#include "magick/composite.h"#include "magick/composite-private.h"#include "magick/constitute.h"#include "magick/deprecate.h"#include "magick/draw.h"#include "magick/draw-private.h"#include "magick/effect.h"#include "magick/enhance.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/histogram.h"#include "magick/identify.h"#include "magick/image.h"#include "magick/image-private.h"#include "magick/list.h"#include "magick/log.h"#include "magick/memory_.h"#include "magick/magick.h"#include "magick/monitor.h"#include "magick/monitor-private.h"#include "magick/paint.h"#include "magick/pixel.h"#include "magick/pixel-private.h"#include "magick/property.h"#include "magick/quantize.h"#include "magick/random_.h"#include "magick/resource_.h"#include "magick/semaphore.h"#include "magick/segment.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/thread-private.h"#include "magick/threshold.h"#include "magick/transform.h"#include "magick/utility.h"
Go to the source code of this file.
Functions | |
| MagickExport RectangleInfo | GetImageBoundingBox (const Image *image, ExceptionInfo *exception) |
| MagickExport unsigned long | GetImageDepth (const Image *image, ExceptionInfo *exception) |
| MagickExport unsigned long | GetImageChannelDepth (const Image *image, const ChannelType channel, ExceptionInfo *exception) |
| static double | MagickMin (const double x, const double y) |
| MagickExport unsigned long | GetImageQuantumDepth (const Image *image, const MagickBooleanType constrain) |
| MagickExport ImageType | GetImageType (const Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | IsGrayImage (const Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | IsMonochromeImage (const Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | IsOpaqueImage (const Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | SetImageDepth (Image *image, const unsigned long depth) |
| MagickExport MagickBooleanType | SetImageChannelDepth (Image *image, const ChannelType channel, const unsigned long depth) |
| MagickExport RectangleInfo GetImageBoundingBox | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 120 of file attribute.c.
References AcquireCacheView(), _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetMagickPixelPacket(), _RectangleInfo::height, IsMagickColorSimilar(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, OptionWarning, _Image::rows, SetMagickPixelPacket(), _Image::signature, ThrowMagickException(), TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DeskewImage(), InterpretImageProperties(), RenderPostscript(), and TrimImage().
| MagickExport unsigned long GetImageChannelDepth | ( | const Image * | image, | |
| const ChannelType | channel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 283 of file attribute.c.
References AcquireCacheView(), AcquireQuantumMemory(), BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPMaximumThreads(), GetOpenMPThreadId(), GetQuantumRange(), GreenChannel, IndexChannel, LogMagickEvent(), MAGICKCORE_QUANTUM_DEPTH, MagickFalse, MagickSignature, MagickTrue, _Image::matte, OpacityChannel, PseudoClass, RedChannel, RelinquishMagickMemory(), ResourceLimitFatalError, _Image::rows, ScaleAnyToQuantum(), ScaleQuantumToAny(), _Image::signature, _Image::storage_class, ThrowFatalException, and TraceEvent.
Referenced by FxChannelStatistics(), FxGetSymbol(), and GetImageDepth().
| MagickExport unsigned long GetImageDepth | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 277 of file attribute.c.
References AllChannels, and GetImageChannelDepth().
Referenced by IdentifyImage(), and SetImageChannelDepth().
| MagickExport unsigned long GetImageQuantumDepth | ( | const Image * | image, | |
| const MagickBooleanType | constrain | |||
| ) |
Definition at line 471 of file attribute.c.
References _Image::depth, MAGICKCORE_QUANTUM_DEPTH, MagickFalse, and MagickMin().
| MagickExport ImageType GetImageType | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 527 of file attribute.c.
References BilevelType, CMYKColorspace, ColorSeparationMatteType, ColorSeparationType, _Image::colorspace, _Image::debug, _Image::filename, GetMagickModule, GrayscaleMatteType, GrayscaleType, IsGrayImage(), IsMonochromeImage(), IsPaletteImage(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::matte, PaletteMatteType, PaletteType, _Image::signature, TraceEvent, TrueColorMatteType, and TrueColorType.
Referenced by IdentifyImage().
| MagickExport MagickBooleanType IsGrayImage | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 584 of file attribute.c.
References AcquireCacheView(), BilevelType, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GrayscaleMatteType, GrayscaleType, IsGrayPixel(), IsMonochromePixel(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, PseudoClass, _Image::rows, _Image::signature, _Image::storage_class, TraceEvent, _Image::type, UndefinedClass, and UndefinedType.
Referenced by ForwardFourierTransformImage(), GetImageType(), GetMagickProperty(), GetQuantumType(), IdentifyImage(), InterpretImageProperties(), InverseFourierTransformImage(), ProfileImage(), QuantizeImage(), and SetImageType().
| MagickExport MagickBooleanType IsMonochromeImage | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 695 of file attribute.c.
References AcquireCacheView(), BilevelType, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, IsMonochromePixel(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, PseudoClass, _Image::rows, _Image::signature, _Image::storage_class, TraceEvent, _Image::type, UndefinedClass, and UndefinedType.
Referenced by GetImageType(), SetGrayscaleImage(), and SetImageType().
| MagickExport MagickBooleanType IsOpaqueImage | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 800 of file attribute.c.
References AcquireCacheView(), _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpaqueOpacity, _Image::rows, _Image::signature, and TraceEvent.
| static double MagickMin | ( | const double | x, | |
| const double | y | |||
| ) | [inline, static] |
Definition at line 464 of file attribute.c.
Referenced by GetImageQuantumDepth(), and SetImageChannelDepth().
| MagickExport MagickBooleanType SetImageChannelDepth | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const unsigned long | depth | |||
| ) |
Definition at line 878 of file attribute.c.
References AcquireCacheView(), BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, _Image::depth, DestroyCacheView(), _Image::exception, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetImageDepth(), GetMagickModule, GetQuantumRange(), GreenChannel, IndexChannel, LogMagickEvent(), MAGICKCORE_QUANTUM_DEPTH, MagickFalse, MagickMin(), MagickSignature, MagickTrue, _Image::matte, OpacityChannel, PseudoClass, RedChannel, _Image::rows, ScaleAnyToQuantum(), ScaleQuantumToAny(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by SetImageDepth().
| MagickExport MagickBooleanType SetImageDepth | ( | Image * | image, | |
| const unsigned long | depth | |||
| ) |
Definition at line 872 of file attribute.c.
References AllChannels, and SetImageChannelDepth().
1.6.1