2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 % DDDD IIIII SSSSS PPPP L AAA Y Y %
7 % D D I SS P P L A A Y Y %
8 % D D I SSS PPPP L AAAAA Y %
10 % DDDD IIIII SSSSS P LLLLL A A Y %
13 % Interactively Display an Image. %
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 % Display is a machine architecture independent image processing
37 % and display program. It can display any image in the MIFF format on
38 % any workstation display running X. Display first determines the
39 % hardware capabilities of the workstation. If the number of unique
40 % colors in the image is less than or equal to the number the workstation
41 % can support, the image is displayed in an X window. Otherwise the
42 % number of colors in the image is first reduced to match the color
43 % resolution of the workstation before it is displayed.
45 % This means that a continuous-tone 24 bits-per-pixel image can display on a
46 % 8 bit pseudo-color device or monochrome device. In most instances the
47 % reduced color image closely resembles the original. Alternatively, a
48 % monochrome or pseudo-color image can display on a continuous-tone 24
49 % bits-per-pixel device.
58 #include "wand/studio.h"
59 #include "wand/MagickWand.h"
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75 #if defined(__WINDOWS__)
76 int WINAPI WinMain(HINSTANCE instance,HINSTANCE last,LPSTR command,int state)
85 argv=StringToArgv(command,&argc);
86 return(main(argc,argv));
90 int main(int argc,char **argv)
101 MagickCoreGenesis(*argv,MagickTrue);
102 exception=AcquireExceptionInfo();
103 image_info=AcquireImageInfo();
104 status=MagickCommandGenesis(image_info,DisplayImageCommand,argc,argv,
105 (char **) NULL,exception);
106 image_info=DestroyImageInfo(image_info);
107 exception=DestroyExceptionInfo(exception);
108 MagickCoreTerminus();