mogrify.c File Reference

#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 Documentation

 
#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

Definition at line 50 of file mogrify.c.

Referenced by MogrifyImageInfo().

#define X_OK   1

Referenced by IsDirectory().


Function Documentation

static int IsDirectory ( const char *  path  )  [static]

Definition at line 95 of file mogrify.c.

References S_ISDIR, and X_OK.

Referenced by MogrifyImage().

static long MagickMax ( const long  x,
const long  y 
) [inline, static]

Definition at line 119 of file mogrify.c.

WandExport MagickBooleanType MogrifyImage ( ImageInfo *  image_info,
const int  argc,
const char **  argv,
Image **  image,
ExceptionInfo *  exception 
)

WandExport MagickBooleanType MogrifyImageCommand ( ImageInfo *  image_info,
int  argc,
char **  argv,
char **  wand_unusedmetadata,
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 
)

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]

Definition at line 3084 of file mogrify.c.

Referenced by MogrifyImageCommand().

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().


Variable Documentation

const char* BackgroundColor = "#fff" [static]

Definition at line 56 of file mogrify.c.

Referenced by MogrifyImage(), and MogrifyImageInfo().

const char * BorderColor = "#dfdfdf" [static]

Definition at line 57 of file mogrify.c.

Referenced by MogrifyImage(), and MogrifyImageInfo().

const char * MatteColor = "#bdbdbd" [static]

Definition at line 58 of file mogrify.c.

Referenced by MogrifyImage(), and MogrifyImageInfo().


Generated on Thu Sep 4 11:43:16 2008 for ImageMagick by  doxygen 1.5.6