2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 % PPPP AAA N N GGGG OOO %
8 % PPPP AAAAA N N N G GGG O O %
9 % P M A A N NN G G O O %
10 % P A A N N GGGG OOO %
13 % Read Pango Markup Language Format %
20 % Copyright 1999-2011 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42 #include "MagickCore/studio.h"
43 #include "MagickCore/blob.h"
44 #include "MagickCore/blob-private.h"
45 #include "MagickCore/client.h"
46 #include "MagickCore/display.h"
47 #include "MagickCore/exception.h"
48 #include "MagickCore/exception-private.h"
49 #include "MagickCore/image.h"
50 #include "MagickCore/image-private.h"
51 #include "MagickCore/list.h"
52 #include "MagickCore/magick.h"
53 #include "MagickCore/monitor.h"
54 #include "MagickCore/monitor-private.h"
55 #include "MagickCore/memory_.h"
56 #include "MagickCore/option.h"
57 #include "MagickCore/pixel-accessor.h"
58 #include "MagickCore/quantum-private.h"
59 #include "MagickCore/static.h"
60 #include "MagickCore/string_.h"
61 #include "MagickCore/module.h"
62 #include "MagickCore/utility.h"
63 #include "MagickCore/xwindow.h"
64 #include "MagickCore/xwindow-private.h"
65 #if defined(MAGICKCORE_PANGO_DELEGATE)
66 #include <pango/pango.h>
69 #if defined(MAGICKCORE_PANGO_DELEGATE)
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75 % R e a d P A N G O I m a g e %
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 % ReadPANGOImage() reads an image in the Pango Markup Language Format.
83 % The format of the ReadPANGOImage method is:
85 % Image *ReadPANGOImage(const ImageInfo *image_info,
86 % ExceptionInfo *exception)
88 % A description of each parameter follows:
90 % o image_info: the image info.
92 % o exception: return any errors or warnings in this structure.
95 static Image *ReadPANGOImage(const ImageInfo *image_info,
96 ExceptionInfo *exception)
98 return((Image *) NULL);
103 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
107 % R e g i s t e r P A N G O I m a g e %
111 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113 % RegisterPANGOImage() adds attributes for the Pango Markup Language format to
114 % the list of supported formats. The attributes include the image format
115 % tag, a method to read and/or write the format, whether the format
116 % supports the saving of more than one frame to the same file or blob,
117 % whether the format supports native in-memory I/O, and a brief
118 % description of the format.
120 % The format of the RegisterPANGOImage method is:
122 % size_t RegisterPANGOImage(void)
125 ModuleExport size_t RegisterPANGOImage(void)
130 entry=SetMagickInfo("PANGO");
131 #if defined(MAGICKCORE_PANGO_DELEGATE)
132 entry->decoder=(DecodeImageHandler *) ReadPANGOImage;
134 entry->description=ConstantString("Pango Markup Language");
135 entry->adjoin=MagickFalse;
136 entry->module=ConstantString("PANGO");
137 (void) RegisterMagickInfo(entry);
138 return(MagickImageCoderSignature);
142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
146 % U n r e g i s t e r P A N G O I m a g e %
150 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
152 % UnregisterPANGOImage() removes format registrations made by the Pango module
153 % from the list of supported formats.
155 % The format of the UnregisterPANGOImage method is:
157 % UnregisterPANGOImage(void)
160 ModuleExport void UnregisterPANGOImage(void)
162 (void) UnregisterMagickInfo("PANGO");