2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 % IIIII M M PPPP OOO RRRR TTTTT %
7 % I MM MM P P O O R R T %
8 % I M M M PPPP O O RRRR T %
10 % IIIII M M P OOO R R T %
13 % Import image to a machine independent format. %
20 % Copyright 1999-2010 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 % Import is an X Window System window dumping utility. Import allows X
37 % users to store window images in a specially formatted dump file. This
38 % file can then be read by the Display utility for redisplay, printing,
39 % editing, formatting, archiving, image processing, etc. The target
40 % window can be specified by id or name or be selected by clicking the
41 % mouse in the desired window. The keyboard bell is rung once at the
42 % beginning of the dump and twice when the dump is completed.
50 #include "wand/studio.h"
51 #include "wand/MagickWand.h"
54 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67 #if defined(MAGICKCORE_WINDOWS_SUPPORT)
68 int WINAPI WinMain(HINSTANCE instance,HINSTANCE last,LPSTR command,int state)
77 argv=StringToArgv(command,&argc);
78 return(main(argc,argv));
82 int main(int argc,char **argv)
93 MagickCoreGenesis(*argv,MagickTrue);
94 exception=AcquireExceptionInfo();
95 image_info=AcquireImageInfo();
96 status=MagickCommandGenesis(image_info,ImportImageCommand,argc,argv,
97 (char **) NULL,exception);
98 image_info=DestroyImageInfo(image_info);
99 exception=DestroyExceptionInfo(exception);
100 MagickCoreTerminus();