MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/attribute.h"
#include "magick/cache.h"
#include "magick/cache-view.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace-private.h"
#include "magick/composite.h"
#include "magick/distort.h"
#include "magick/draw.h"
#include "magick/effect.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/geometry.h"
#include "magick/image.h"
#include "magick/memory_.h"
#include "magick/layer.h"
#include "magick/list.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/pixel-private.h"
#include "magick/property.h"
#include "magick/resource_.h"
#include "magick/resize.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/thread-private.h"
#include "magick/transform.h"
Go to the source code of this file.
Macros | |
#define | ChopImageTag "Chop/Image" |
#define | CropImageTag "Crop/Image" |
#define | ExcerptImageTag "Excerpt/Image" |
#define | FlipImageTag "Flip/Image" |
#define | FlopImageTag "Flop/Image" |
#define | RollImageTag "Roll/Image" |
#define | SpliceImageTag "Splice/Image" |
#define | TransposeImageTag "Transpose/Image" |
#define | TransverseImageTag "Transverse/Image" |
Functions | |
MagickExport Image * | AutoOrientImage (const Image *image, const OrientationType orientation, ExceptionInfo *exception) |
MagickExport Image * | ChopImage (const Image *image, const RectangleInfo *chop_info, ExceptionInfo *exception) |
MagickExport Image * | ConsolidateCMYKImages (const Image *images, ExceptionInfo *exception) |
MagickExport Image * | CropImage (const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception) |
static ssize_t | PixelRoundOffset (double x) |
MagickExport Image * | CropImageToTiles (const Image *image, const char *crop_geometry, ExceptionInfo *exception) |
MagickExport Image * | ExcerptImage (const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception) |
MagickExport Image * | ExtentImage (const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception) |
MagickExport Image * | FlipImage (const Image *image, ExceptionInfo *exception) |
MagickExport Image * | FlopImage (const Image *image, ExceptionInfo *exception) |
static MagickBooleanType | CopyImageRegion (Image *destination, const Image *source, const size_t columns, const size_t rows, const ssize_t sx, const ssize_t sy, const ssize_t dx, const ssize_t dy, ExceptionInfo *exception) |
MagickExport Image * | RollImage (const Image *image, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
MagickExport Image * | ShaveImage (const Image *image, const RectangleInfo *shave_info, ExceptionInfo *exception) |
MagickExport Image * | SpliceImage (const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception) |
MagickExport MagickBooleanType | TransformImage (Image **image, const char *crop_geometry, const char *image_geometry) |
MagickExport MagickBooleanType | TransformImages (Image **images, const char *crop_geometry, const char *image_geometry) |
MagickExport Image * | TransposeImage (const Image *image, ExceptionInfo *exception) |
MagickExport Image * | TransverseImage (const Image *image, ExceptionInfo *exception) |
MagickExport Image * | TrimImage (const Image *image, ExceptionInfo *exception) |
#define ChopImageTag "Chop/Image" |
#define CropImageTag "Crop/Image" |
#define ExcerptImageTag "Excerpt/Image" |
#define FlipImageTag "Flip/Image" |
#define FlopImageTag "Flop/Image" |
#define RollImageTag "Roll/Image" |
#define SpliceImageTag "Splice/Image" |
#define TransposeImageTag "Transpose/Image" |
#define TransverseImageTag "Transverse/Image" |
MagickExport Image * AutoOrientImage | ( | const Image * | image, |
const OrientationType | orientation, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 99 of file transform.c.
References BottomLeftOrientation, BottomRightOrientation, CloneImage(), FlipImage(), FlopImage(), LeftBottomOrientation, LeftTopOrientation, MagickCoreSignature, MagickTrue, _Image::orientation, RightBottomOrientation, RightTopOrientation, RotateImage(), _ExceptionInfo::signature, _Image::signature, TopLeftOrientation, TopRightOrientation, TransposeImage(), TransverseImage(), and UndefinedOrientation.
MagickExport Image * ChopImage | ( | const Image * | image, |
const RectangleInfo * | chop_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 188 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ChopImageTag, CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelIndex, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OptionWarning, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport Image * ConsolidateCMYKImages | ( | const Image * | images, |
ExceptionInfo * | exception | ||
) |
Definition at line 412 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AppendImageToList(), ClampToQuantum(), CloneImage(), CMYKColorspace, _Image::columns, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetImageListLength(), GetMagickModule, GetNextImageInList(), GetPixelIntensity(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, NewImageList(), QuantumRange, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageColorspace(), SetImageStorageClass(), SetPixelIndex, SetPixelRed, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
|
static |
Definition at line 1509 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), DestroyCacheView(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), magick_restrict, MagickFalse, MagickTrue, and SyncCacheViewAuthenticPixels().
Referenced by RollImage().
MagickExport Image * CropImage | ( | const Image * | image, |
const RectangleInfo * | geometry, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 614 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _Image::background_color, BackgroundDispose, CloneImage(), _Image::columns, CropImageTag, DestroyCacheView(), DestroyImage(), _Image::dispose, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, NoneDispose, _PixelPacket::opacity, OptionWarning, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageBackgroundColor(), SetImageProgress(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowMagickException(), TraceEvent, TransparentOpacity, _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by CompareImageLayers(), CropImageToTiles(), CropToFitImage(), DeskewImage(), DistortResizeImage(), ExtractSubimageFromImage(), GetEdgeBackgroundFactor(), GetSimilarityMetric(), OptimizeLayerFrames(), ReadImage(), ShaveImage(), and TrimImage().
MagickExport Image * CropImageToTiles | ( | const Image * | image, |
const char * | crop_geometry, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 843 of file transform.c.
References AppendImageToList(), AreaValue, AspectValue, ClearMagickException(), CloneImage(), _Image::columns, CropImage(), _Image::filename, GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NewImageList(), _Image::page, ParseGravityGeometry(), PixelRoundOffset(), _Image::rows, _Image::signature, TraceEvent, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, XValue, _PointInfo::y, _RectangleInfo::y, and YValue.
Referenced by TransformImage().
MagickExport Image * ExcerptImage | ( | const Image * | image, |
const RectangleInfo * | geometry, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1042 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), ExcerptImageTag, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, _Image::rows, SetImageProgress(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by InterpolateMagickPixelPacket(), and InterpolatePixelColor().
MagickExport Image * ExtentImage | ( | const Image * | image, |
const RectangleInfo * | geometry, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1174 of file transform.c.
References CloneImage(), _Image::compose, CompositeImage(), DeleteImageProfile(), DestroyImage(), _Image::exception, _Image::filename, GetMagickModule, _RectangleInfo::height, InheritException(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport Image * FlipImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1241 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, FlipImageTag, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _Image::type, and _RectangleInfo::y.
Referenced by AutoOrientImage().
MagickExport Image * FlopImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1370 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, FlopImageTag, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelIndex, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetPixelIndex, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _Image::type, _RectangleInfo::width, and _RectangleInfo::x.
Referenced by AutoOrientImage(), and PolaroidImage().
|
inlinestatic |
Definition at line 833 of file transform.c.
References CastDoubleToLong().
Referenced by CropImageToTiles().
MagickExport Image * RollImage | ( | const Image * | image, |
const ssize_t | x_offset, | ||
const ssize_t | y_offset, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1578 of file transform.c.
References CloneImage(), _Image::columns, CopyImageRegion(), DestroyImage(), _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, RollImageTag, _Image::rows, SetImageProgress(), _ExceptionInfo::signature, _Image::signature, TraceEvent, _Image::type, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by PreviewImage().
MagickExport Image * ShaveImage | ( | const Image * | image, |
const RectangleInfo * | shave_info, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1671 of file transform.c.
References _Image::columns, CropImage(), _Image::filename, GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, OptionWarning, _Image::page, _Image::rows, SetGeometry(), _Image::signature, ThrowImageException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport Image * SpliceImage | ( | const Image * | image, |
const RectangleInfo * | geometry, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1731 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CenterGravity, CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, DestroyCacheView(), DestroyImage(), DirectClass, EastGravity, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelBlue, GetPixelGreen, GetPixelIndex, GetPixelOpacity, GetPixelRed, _Image::gravity, _RectangleInfo::height, InheritException(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMin, MagickTrue, _Image::matte, NorthEastGravity, NorthGravity, NorthWestGravity, OpaqueOpacity, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageBackgroundColor(), SetImageProgress(), SetImageStorageClass(), SetPixelBlue, SetPixelGreen, SetPixelIndex, SetPixelOpacity, SetPixelRed, _ExceptionInfo::signature, _Image::signature, SouthEastGravity, SouthGravity, SouthWestGravity, SpliceImageTag, StaticGravity, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedGravity, WestGravity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport MagickBooleanType TransformImage | ( | Image ** | image, |
const char * | crop_geometry, | ||
const char * | image_geometry | ||
) |
Definition at line 2056 of file transform.c.
References _Image::blur, CloneImage(), _Image::columns, CropImageToTiles(), DestroyImage(), _Image::exception, _Image::filter, GetFirstImageInList(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, ParseRegionGeometry(), ResizeImage(), _Image::rows, TraceEvent, and _RectangleInfo::width.
Referenced by DrawPrimitive(), RenderPostscript(), SketchImage(), and TransformImages().
MagickExport MagickBooleanType TransformImages | ( | Image ** | images, |
const char * | crop_geometry, | ||
const char * | image_geometry | ||
) |
Definition at line 2143 of file transform.c.
References AppendImageToList(), _Image::exception, GetMagickModule, ImageListToArray(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NewImageList(), RelinquishMagickMemory(), TraceEvent, and TransformImage().
MagickExport Image * TransposeImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 2203 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), _ExceptionInfo::signature, _Image::signature, Swap, SyncCacheViewAuthenticPixels(), TraceEvent, TransposeImageTag, _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AutoOrientImage().
MagickExport Image * TransverseImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 2333 of file transform.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelIndex, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetPixelIndex, _ExceptionInfo::signature, _Image::signature, Swap, SyncCacheViewAuthenticPixels(), TraceEvent, TransverseImageTag, _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by AutoOrientImage().
MagickExport Image * TrimImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 2476 of file transform.c.
References _Image::background_color, CloneImage(), CropImage(), _Image::filename, GetImageBoundingBox(), GetMagickModule, _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _PixelPacket::opacity, _Image::page, SetImageBackgroundColor(), _Image::signature, TraceEvent, TransparentOpacity, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by PolaroidImage().