root/ImageMagick/trunk/utilities/composite.c

Revision 455, 3.9 KB (checked in by cristy, 4 weeks ago)
Line 
1/*
2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3%                                                                             %
4%                                                                             %
5%                                                                             %
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        %
11%                                                                             %
12%                                                                             %
13%                        Digitally composite two images.                      %
14%                                                                             %
15%                              Software Design                                %
16%                                John Cristy                                  %
17%                               January 1993                                  %
18%                                                                             %
19%                                                                             %
20%  Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization      %
21%  dedicated to making software imaging solutions freely available.           %
22%                                                                             %
23%  You may not use this file except in compliance with the License.  You may  %
24%  obtain a copy of the License at                                            %
25%                                                                             %
26%    http://www.imagemagick.org/script/license.php                            %
27%                                                                             %
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.                                             %
33%                                                                             %
34%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35%
36%  Program Composite composites images to create new images.
37%
38%
39*/
40
41/*
42  Include declarations.
43*/
44#include "wand/studio.h"
45#include "wand/MagickWand.h"
46
47/*
48%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49%                                                                             %
50%                                                                             %
51%                                                                             %
52%  M a i n                                                                    %
53%                                                                             %
54%                                                                             %
55%                                                                             %
56%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57%
58%
59*/
60int main(int argc,char **argv)
61{
62  ExceptionInfo
63    *exception;
64
65  ImageInfo
66    *image_info;
67
68  MagickBooleanType
69    status;
70
71  MagickCoreGenesis(*argv,MagickTrue);
72  exception=AcquireExceptionInfo();
73  image_info=AcquireImageInfo();
74  status=MagickCommandGenesis(image_info,CompositeImageCommand,argc,argv,
75    (char **) NULL,exception);
76  image_info=DestroyImageInfo(image_info);
77  exception=DestroyExceptionInfo(exception);
78  MagickCoreTerminus();
79  return(status);
80}
Note: See TracBrowser for help on using the browser.