2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 % CCCC OOO M M PPPP OOO SSSSS IIIII TTTTT EEEEE %
7 % C O O MM MM P P O O SS I T E %
8 % C O O M.M M PPPP O O SSS I T EEE %
9 % C O O M M P O O SS I T E %
10 % CCCC OOO M M P OOO SSSSS IIIII T EEEEE %
13 % Digitally composite two images. %
20 % Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
21 % dedicated to making software imaging solutions freely available. %
23 % You may not use this file except in compliance with the License. You may %
24 % obtain a copy of the License at %
26 % http://www.imagemagick.org/script/license.php %
28 % Unless required by applicable law or agreed to in writing, software %
29 % distributed under the License is distributed on an "AS IS" BASIS, %
30 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
31 % See the License for the specific language governing permissions and %
32 % limitations under the License. %
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36 % Program Composite composites images to create new images.
44 #include "MagickWand/studio.h"
45 #include "MagickWand/MagickWand.h"
48 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61 static int CompositeMain(int argc,char **argv)
72 MagickCoreGenesis(*argv,MagickTrue);
73 exception=AcquireExceptionInfo();
74 image_info=AcquireImageInfo();
75 status=MagickCommandGenesis(image_info,CompositeImageCommand,argc,argv,
76 (char **) NULL,exception);
77 image_info=DestroyImageInfo(image_info);
78 exception=DestroyExceptionInfo(exception);
83 #if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__)
84 int main(int argc,char **argv)
86 return(CompositeMain(argc,argv));
89 int wmain(int argc,wchar_t *argv[])
100 utf8=NTArgvToUTF8(argc,argv);
101 status=CompositeMain(argc,utf8);
102 for (i=0; i < argc; i++)
103 utf8[i]=DestroyString(utf8[i]);
104 utf8=(char **) RelinquishMagickMemory(utf8);