MagickWand  6.9.11-59
Convert, Edit, Or Compose Bitmap Images
mogrify.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickWand mogrify command-line method.
17 */
18 #ifndef MAGICKWAND_MOGRIFY_H
19 #define MAGICKWAND_MOGRIFY_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef MagickBooleanType
26  (*MagickCommand)(ImageInfo *,int,char **,char **,ExceptionInfo *);
27 
28 extern WandExport MagickBooleanType
29  MagickCommandGenesis(ImageInfo *,MagickCommand,int,char **,char **,
30  ExceptionInfo *),
31  MogrifyImage(ImageInfo *,const int,const char **,Image **,ExceptionInfo *),
32  MogrifyImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *),
33  MogrifyImageInfo(ImageInfo *,const int,const char **,ExceptionInfo *),
34  MogrifyImageList(ImageInfo *,const int,const char **,Image **,
35  ExceptionInfo *),
36  MogrifyImages(ImageInfo *,const MagickBooleanType,const int,const char **,
37  Image **,ExceptionInfo *);
38 
39 #if defined(__cplusplus) || defined(c_plusplus)
40 }
41 #endif
42 
43 #endif
DirectorySeparator
#define DirectorySeparator
Definition: studio.h:257
IsPathWritable
static MagickBooleanType IsPathWritable(const char *path)
Definition: mogrify.c:376
magick_restrict
#define magick_restrict
Definition: MagickWand.h:41
MonitorProgress
static MagickBooleanType MonitorProgress(const char *text, const MagickOffsetType offset, const MagickSizeType extent, void *wand_unused(client_data))
Definition: mogrify.c:385
MagickCommand
MagickBooleanType(* MagickCommand)(ImageInfo *, int, char **, char **, ExceptionInfo *)
Definition: mogrify.h:26
SetMagickPixelPacket
static void SetMagickPixelPacket(const Image *image, const PixelPacket *color, const IndexPacket *index, MagickPixelPacket *pixel)
Definition: drawing-wand.c:2382
ThrowMogrifyException
#define ThrowMogrifyException(asperity, tag, option)
MogrifyMatteColor
static const char MogrifyMatteColor[]
Definition: mogrify.c:75
magick-wand-private.h
AppendImageStack
#define AppendImageStack(images)
Definition: mogrify-private.h:25
MogrifyImage
WandExport MagickBooleanType MogrifyImage(ImageInfo *, const int, const char **, Image **, ExceptionInfo *)
MogrifyImages
WandExport MagickBooleanType MogrifyImages(ImageInfo *image_info, const MagickBooleanType post, const int argc, const char **argv, Image **images, ExceptionInfo *exception)
Definition: mogrify.c:8885
PopImageStack
#define PopImageStack()
Definition: mogrify-private.h:85
FireImageStack
#define FireImageStack(postfix, advance, fire)
Definition: mogrify-private.h:48
mogrify-private.h
MogrifyUsage
static MagickBooleanType MogrifyUsage(void)
Definition: mogrify.c:3426
DestroyMogrify
#define DestroyMogrify()
MogrifyImages
WandExport MagickBooleanType MogrifyImages(ImageInfo *, const MagickBooleanType, const int, const char **, Image **, ExceptionInfo *)
Definition: mogrify.c:8885
ThrowMogrifyInvalidArgumentException
#define ThrowMogrifyInvalidArgumentException(option, argument)
MogrifyImageList
WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info, const int argc, const char **argv, Image **images, ExceptionInfo *exception)
Definition: mogrify.c:7730
NewImageStack
#define NewImageStack()
Definition: mogrify-private.h:69
GetImageCache
static Image * GetImageCache(const ImageInfo *image_info, const char *path, ExceptionInfo *exception)
Definition: mogrify.c:342
FinalizeImageSettings
#define FinalizeImageSettings(image_info, image, advance)
Definition: mogrify-private.h:39
ReadCommandlLine
#define ReadCommandlLine(argc, argv)
Definition: studio.h:264
MogrifyImageCommand
WandExport MagickBooleanType MogrifyImageCommand(ImageInfo *image_info, int argc, char **argv, char **wand_unused(metadata), ExceptionInfo *exception)
Definition: mogrify.c:3769
SparseColorOption
static Image * SparseColorOption(const Image *image, const ChannelType channel, const SparseColorMethod method, const char *arguments, const MagickBooleanType color_from_image, ExceptionInfo *exception)
Definition: mogrify.c:427
MaxImageStackDepth
#define MaxImageStackDepth
Definition: mogrify-private.h:68
ThrowWandFatalException
#define ThrowWandFatalException(severity, tag, context)
Definition: magick-wand-private.h:36
MogrifyBorderColor
static const char MogrifyBorderColor[]
Definition: mogrify.c:74
MogrifyImageInfo
WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info, const int argc, const char **argv, ExceptionInfo *exception)
Definition: mogrify.c:6556
MogrifyImageCommand
WandExport MagickBooleanType MogrifyImageCommand(ImageInfo *, int, char **, char **, ExceptionInfo *)
MagickCommandGenesis
WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *, MagickCommand, int, char **, char **, ExceptionInfo *)
MogrifyImage
WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info, const int argc, const char **argv, Image **image, ExceptionInfo *exception)
Definition: mogrify.c:659
wand_unused
#define wand_unused(x)
Definition: method-attribute.h:94
MogrifyImageTag
#define MogrifyImageTag
studio.h
_ImageStack
Definition: mogrify-private.h:117
MagickCommandGenesis
WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info, MagickCommand command, int argc, char **argv, char **metadata, ExceptionInfo *exception)
Definition: mogrify.c:117
RemoveAllImageStack
#define RemoveAllImageStack()
Definition: mogrify-private.h:106
MagickWand.h
MogrifyImageList
WandExport MagickBooleanType MogrifyImageList(ImageInfo *, const int, const char **, Image **, ExceptionInfo *)
PushImageStack
#define PushImageStack()
Definition: mogrify-private.h:77
wand_unreferenced
#define wand_unreferenced(x)
Definition: method-attribute.h:95
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:78
MogrifyBackgroundColor
static const char MogrifyBackgroundColor[]
Definition: mogrify.c:73
MogrifyImageInfo
WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *, const int, const char **, ExceptionInfo *)
UndefinedCompressionQuality
#define UndefinedCompressionQuality
Definition: mogrify.c:67
WandExport
#define WandExport
Definition: method-attribute.h:71