#include "wand/studio.h"
#include "wand/MagickWand.h"
#include "wand/mogrify-private.h"
Go to the source code of this file.
Defines | |
| #define | UndefinedCompressionQuality 0UL |
| #define | X_OK 1 |
| #define | DestroyMogrify() |
| #define | ThrowMogrifyException(asperity, tag, option) |
| #define | ThrowMogrifyInvalidArgumentException(option, argument) |
| #define | MogrifyImageTag "Mogrify/Image" |
Functions | |
| static int | IsDirectory (const char *path) |
| static long | MagickMax (const long x, const long y) |
| static MagickBooleanType | MonitorProgress (const char *tag, const MagickOffsetType quantum, const MagickSizeType span, void *wand_unused(client_data)) |
| WandExport MagickBooleanType | MogrifyImage (ImageInfo *image_info, const int argc, const char **argv, Image **image, ExceptionInfo *exception) |
| static void | MogrifyUsage (void) |
| WandExport MagickBooleanType | MogrifyImageCommand (ImageInfo *image_info, int argc, char **argv, char **wand_unused(metadata), ExceptionInfo *exception) |
| WandExport MagickBooleanType | MogrifyImageInfo (ImageInfo *image_info, const int argc, const char **argv, ExceptionInfo *exception) |
| WandExport MagickBooleanType | MogrifyImageList (ImageInfo *image_info, const int argc, const char **argv, Image **images, ExceptionInfo *exception) |
| WandExport MagickBooleanType | MogrifyImages (ImageInfo *image_info, const MagickBooleanType post, const int argc, const char **argv, Image **images, ExceptionInfo *exception) |
Variables | |
| static const char * | BackgroundColor = "#fff" |
| static const char * | BorderColor = "#dfdfdf" |
| static const char * | MatteColor = "#bdbdbd" |
| #define DestroyMogrify | ( | ) |
Value:
{ \
if (format != (char *) NULL) \
format=DestroyString(format); \
if (path != (char *) NULL) \
path=DestroyString(path); \
DestroyImageStack(); \
for (i=0; i < (long) argc; i++) \
argv[i]=DestroyString(argv[i]); \
argv=(char **) RelinquishMagickMemory(argv); \
}
Referenced by MogrifyImageCommand().
| #define MogrifyImageTag "Mogrify/Image" |
Referenced by MogrifyImages().
| #define ThrowMogrifyException | ( | asperity, | |||
| tag, | |||||
| option | ) |
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"`%s'", \
option); \
DestroyMogrify(); \
return(MagickFalse); \
}
Referenced by MogrifyImageCommand().
| #define ThrowMogrifyInvalidArgumentException | ( | option, | |||
| argument | ) |
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),OptionError, \
"InvalidArgument","`%s': %s",argument,option); \
DestroyMogrify(); \
return(MagickFalse); \
}
Referenced by MogrifyImageCommand().
| #define UndefinedCompressionQuality 0UL |
| #define X_OK 1 |
Referenced by IsDirectory().
| static int IsDirectory | ( | const char * | path | ) | [static] |
| static long MagickMax | ( | const long | x, | |
| const long | y | |||
| ) | [inline, static] |
| WandExport MagickBooleanType MogrifyImage | ( | ImageInfo * | image_info, | |
| const int | argc, | |||
| const char ** | argv, | |||
| Image ** | image, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 150 of file mogrify.c.
References BackgroundColor, BorderColor, DegreesToRadians, IsDirectory(), MagickMax(), MatteColor, MaxTextExtent, MogrifyImageInfo(), MonitorProgress(), PixelIntensityToQuantum(), respect_parenthesis, SetMagickPixelPacket(), and ThrowWandFatalException.
Referenced by MogrifyImages().
| WandExport MagickBooleanType MogrifyImageCommand | ( | ImageInfo * | image_info, | |
| int | argc, | |||
| char ** | argv, | |||
| char ** | wand_unusedmetadata, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3349 of file mogrify.c.
References AppendImageStack, DestroyMogrify, DirectorySeparator, FireImageStack, MaxImageStackDepth, MaxTextExtent, MogrifyImageInfo(), MogrifyUsage(), NewImageStack, PopImageStack, PushImageStack, ReadCommandlLine, RemoveAllImageStack, ThrowMogrifyException, and ThrowMogrifyInvalidArgumentException.
| WandExport MagickBooleanType MogrifyImageInfo | ( | ImageInfo * | image_info, | |
| const int | argc, | |||
| const char ** | argv, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5495 of file mogrify.c.
References BackgroundColor, BorderColor, MagickMax(), MatteColor, MaxTextExtent, MonitorProgress(), and UndefinedCompressionQuality.
Referenced by ConvertImageCommand(), IdentifyImageCommand(), MogrifyImage(), MogrifyImageCommand(), and MogrifyImageList().
| WandExport MagickBooleanType MogrifyImageList | ( | ImageInfo * | image_info, | |
| const int | argc, | |||
| const char ** | argv, | |||
| Image ** | images, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 6438 of file mogrify.c.
References MagickMax(), MaxTextExtent, and MogrifyImageInfo().
Referenced by MogrifyImages().
| WandExport MagickBooleanType MogrifyImages | ( | ImageInfo * | image_info, | |
| const MagickBooleanType | post, | |||
| const int | argc, | |||
| const char ** | argv, | |||
| Image ** | images, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 7189 of file mogrify.c.
References MogrifyImage(), MogrifyImageList(), MogrifyImageTag, and QuantumTick.
| static void MogrifyUsage | ( | void | ) | [static] |
| static MagickBooleanType MonitorProgress | ( | const char * | tag, | |
| const MagickOffsetType | quantum, | |||
| const MagickSizeType | span, | |||
| void * | wand_unusedclient_data | |||
| ) | [static] |
Definition at line 126 of file mogrify.c.
References MaxTextExtent.
Referenced by MogrifyImage(), and MogrifyImageInfo().
const char* BackgroundColor = "#fff" [static] |
const char * BorderColor = "#dfdfdf" [static] |
const char * MatteColor = "#bdbdbd" [static] |
1.5.6