*/
#define MagickPackageName "ImageMagick"
#define MagickCopyright "Copyright (C) 1999-2013 ImageMagick Studio LLC"
-#define MagickSVNRevision "10994:10995M"
+#define MagickSVNRevision "11008:11010M"
#define MagickLibVersion 0x700
#define MagickLibVersionText "7.0.0"
#define MagickLibVersionNumber 1,0,0
#define MagickLibAddendum "-0"
#define MagickLibInterface 1
#define MagickLibMinInterface 1
-#define MagickReleaseDate "2013-02-10"
+#define MagickReleaseDate "2013-02-12"
#define MagickChangeDate "20121005"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#define MagickFeatures "DPC HDRI OpenMP"
MagickWand/montage.h \
MagickWand/operation.c \
MagickWand/operation.h \
+ MagickWand/operation-private.h \
MagickWand/pixel-iterator.c \
MagickWand/pixel-iterator.h \
MagickWand/pixel-wand.c \
MAGICKWAND_NOINST_HDRS = \
MagickWand/mogrify-private.h \
MagickWand/magick-wand-private.h \
+ MagickWand/operation-private.h \
MagickWand/pixel-wand-private.h \
MagickWand/script-token.h \
MagickWand/studio.h \
{
if ((composite_options.compose == DisplaceCompositeOp) ||
(composite_options.compose == DistortCompositeOp))
- {
- /*
- Merge Y displacement into X displacement image.
- */
- (void) CompositeImage(composite_image,mask_image,CopyGreenCompositeOp,
- MagickTrue,0,0,exception);
- mask_image=DestroyImage(mask_image);
- }
+ status&=CompositeImage(composite_image,mask_image,
+ CopyGreenCompositeOp,MagickTrue,0,0,exception);
else
- {
- /*
- Set a blending mask for the composition.
- */
- (void) NegateImage(mask_image,MagickFalse,exception);
- (void) SetImageMask(images,mask_image,exception);
- }
+ status&=CompositeImage(composite_image,mask_image,IntensityCompositeOp,
+ MagickTrue,0,0,exception);
+ mask_image=DestroyImage(mask_image);
}
status&=CompositeImageList(image_info,&images,composite_image,
&composite_options,exception);
{
if ((image->compose == DisplaceCompositeOp) ||
(image->compose == DistortCompositeOp))
- {
- /*
- Merge Y displacement into X displacement image.
- */
- (void) CompositeImage(composite_image,mask_image,
- CopyGreenCompositeOp,MagickTrue,0,0,exception);
- mask_image=DestroyImage(mask_image);
- }
+ status&=CompositeImage(composite_image,mask_image,
+ CopyGreenCompositeOp,MagickTrue,0,0,exception);
else
- {
- /*
- Set a blending mask for the composition.
- */
- (void) NegateImage(mask_image,MagickFalse,exception);
- (void) SetImageMask(composite_image,mask_image,exception);
- mask_image=DestroyImage(mask_image);
- }
+ status&=CompositeImage(composite_image,mask_image,
+ IntensityCompositeOp,MagickTrue,0,0,exception);
+ mask_image=DestroyImage(mask_image);
}
(void) CompositeImage(image,composite_image,image->compose,
clip_to_self,geometry.x,geometry.y,exception);
- (void) SetImageMask(image,(Image *) NULL,exception);
composite_image=DestroyImage(composite_image);
*images=DestroyImageList(*images);
*images=image;
--- /dev/null
+/*
+ Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
+ dedicated to making software imaging solutions freely available.
+
+ You may not use this file except in compliance with the License.
+ obtain a copy of the License at
+
+ http://www.imagemagick.org/script/license.php
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ MagickWand private command-line option process.
+*/
+#ifndef _MAGICKWAND_OPERATION_PRIVATE_H
+#define _MAGICKWAND_OPERATION_PRIVATE_H
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+/* These actually private */
+extern WandPrivate MagickBooleanType
+ CLIListOperatorImages(MagickCLI *, const char *,const char *,const char *);
+
+extern WandPrivate void
+ CLISettingOptionInfo(MagickCLI *,const char *,const char *, const char *),
+ CLISimpleOperatorImages(MagickCLI *,const char *,const char *,const char *),
+ CLINoImageOperator(MagickCLI *, const char *,const char *,const char *);
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+#endif
% arg2 is currently only used by "-limit"
%
*/
-WandExport void CLISettingOptionInfo(MagickCLI *cli_wand,
+WandPrivate void CLISettingOptionInfo(MagickCLI *cli_wand,
const char *option,const char *arg1, const char *arg2)
{
ssize_t
also change. GetFirstImageInList() should be used by caller if they wish
return the Image pointer to the first image in list.
*/
-static void CLISimpleOperatorImage(MagickCLI *cli_wand,
+static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
const char *option, const char *arg1n, const char *arg2n)
{
Image *
if (new_image != (Image *) NULL)
ReplaceImageInListReturnLast(&_image,new_image);
- return;
+ return(MagickTrue);
#undef _image_info
#undef _draw_info
#undef _quantize_info
#undef plus_alt_op
}
-WandExport void CLISimpleOperatorImages(MagickCLI *cli_wand,
- const char *option, const char *arg1, const char *arg2)
+WandPrivate MagickBooleanType CLISimpleOperatorImages(MagickCLI *cli_wand,
+ const char *option,const char *arg1,const char *arg2)
{
#if !USE_WAND_METHODS
size_t
CLISimpleOperatorImage(cli_wand, option, arg1, arg2);
MagickResetIterator(&cli_wand->wand);
#endif
- return;
+ return(MagickTrue);
}
\f
/*
%
% The format of the MogrifyImage method is:
%
-% void CLIListOperatorImages(MagickCLI *cli_wand,
-% const char *option, const char *arg1, const char *arg2)
+% MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
+% const char *option,const char *arg1,const char *arg2)
%
% A description of each parameter follows:
%
% arg2 is currently not used
%
*/
-WandExport void CLIListOperatorImages(MagickCLI *cli_wand,
- const char *option,const char *arg1n, const char *arg2n)
+WandPrivate MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
+ const char *option,const char *arg1n,const char *arg2n)
{
+ MagickBooleanType
+ status;
+
ssize_t
parse;
"CLIListOperatorImages: \"%s\" \"%s\" \"%s\"\n",option,arg1,arg2);
#endif
-
+ status=MagickTrue;
new_images=NewImageList();
switch (*(option+1))
/* FUTURE - this should not be here! - should be part of -geometry */
(void) TransformImage(&source_image,(char *) NULL,
source_image->geometry,_exception);
-
SetGeometry(source_image,&geometry);
(void) ParseAbsoluteGeometry(source_image->geometry,&geometry);
GravityAdjustGeometry(new_images->columns,new_images->rows,
- new_images->gravity, &geometry);
-
+ new_images->gravity, &geometry);
mask_image=RemoveFirstImageFromList(&_images);
if (mask_image != (Image *) NULL)
- { /* handle a third write mask image */
+ {
if ((compose == DisplaceCompositeOp) ||
- (compose == DistortCompositeOp)) {
- /* Merge Y displacement into X displace/distort map. */
- (void) CompositeImage(source_image,mask_image,
+ (compose == DistortCompositeOp))
+ status&=CompositeImage(source_image,mask_image,
CopyGreenCompositeOp,MagickTrue,0,0,_exception);
- mask_image=DestroyImage(mask_image);
- }
- else {
- /* Set a blending mask for the composition. */
- (void) NegateImage(mask_image,MagickFalse,_exception);
- (void) SetImageMask(source_image,mask_image,_exception);
- mask_image=DestroyImage(mask_image);
- }
+ else
+ status&=CompositeImage(source_image,mask_image,
+ IntensityCompositeOp,MagickTrue,0,0,_exception);
+ mask_image=DestroyImage(mask_image);
}
- (void) CompositeImage(new_images,source_image,compose,clip_to_self,
+ status&=CompositeImage(new_images,source_image,compose,clip_to_self,
geometry.x,geometry.y,_exception);
- (void) SetImageMask(new_images,(Image *) NULL,_exception);
source_image=DestroyImage(source_image);
break;
}
/* if new image list generated, replace existing image list */
if (new_images == (Image *) NULL)
- return;
+ return(status);
_images=DestroyImageList(_images);
_images=GetFirstImageInList(new_images);
- return;
+ return(status);
#undef _image_info
#undef _images
% Currently arg2 is not used.
%
*/
-WandExport void CLINoImageOperator(MagickCLI *cli_wand,
- const char *option, const char *arg1, const char *arg2)
+WandPrivate void CLINoImageOperator(MagickCLI *cli_wand,
+ const char *option,const char *arg1,const char *arg2)
{
#if 0
const char /* For percent escape interpretImageProperties() */
extern "C" {
#endif
-/* These actually private */
-extern WandExport void
- CLISettingOptionInfo(MagickCLI *,const char *,const char *, const char *),
- CLISimpleOperatorImages(MagickCLI *,const char *,const char *,const char *),
- CLIListOperatorImages(MagickCLI *, const char *,const char *,const char *),
- CLINoImageOperator(MagickCLI *, const char *,const char *,const char *);
-
-/* This can be used by used using WandCLI API */
extern WandExport void
CLIOption(MagickCLI *,const char *,...);
MagickWand/montage.h \
MagickWand/operation.c \
MagickWand/operation.h \
+ MagickWand/operation-private.h \
MagickWand/pixel-iterator.c \
MagickWand/pixel-iterator.h \
MagickWand/pixel-wand.c \
MAGICKWAND_NOINST_HDRS = \
MagickWand/mogrify-private.h \
MagickWand/magick-wand-private.h \
+ MagickWand/operation-private.h \
MagickWand/pixel-wand-private.h \
MagickWand/script-token.h \
MagickWand/studio.h \
MAGICK_VERSION=7.0.0-0
-MAGICK_SVN_REVISION=10994:10995M
+MAGICK_SVN_REVISION=11008:11010M
# Substitute library versioning