blob: 56bfc441b02c5fbbd73578761af1d3c9f392cfcb [file] [log] [blame]
cristybd4fb6e2011-10-26 13:10:01 +00001/*
2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3% %
4% %
5% %
6% PPPP AAA N N GGGG OOO %
7% P P A A NN N G O O %
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 %
11% %
12% %
13% Read Pango Markup Language Format %
14% %
15% Software Design %
16% John Cristy %
17% March 2012 %
18% %
19% %
20% Copyright 1999-2011 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%
37*/
38
39/*
40 Include declarations.
41*/
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>
67#endif
68
cristybd4fb6e2011-10-26 13:10:01 +000069#if defined(MAGICKCORE_PANGO_DELEGATE)
70/*
71%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72% %
73% %
74% %
cristy6c28ec02011-10-28 11:37:57 +000075% R e a d P A N G O I m a g e %
cristybd4fb6e2011-10-26 13:10:01 +000076% %
77% %
78% %
79%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80%
81% ReadPANGOImage() reads an image in the Pango Markup Language Format.
82%
83% The format of the ReadPANGOImage method is:
84%
85% Image *ReadPANGOImage(const ImageInfo *image_info,
86% ExceptionInfo *exception)
87%
88% A description of each parameter follows:
89%
90% o image_info: the image info.
91%
92% o exception: return any errors or warnings in this structure.
93%
94*/
95static Image *ReadPANGOImage(const ImageInfo *image_info,
96 ExceptionInfo *exception)
97{
98 return((Image *) NULL);
99}
100#endif
101
102/*
103%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
104% %
105% %
106% %
107% R e g i s t e r P A N G O I m a g e %
108% %
109% %
110% %
111%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
112%
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.
119%
120% The format of the RegisterPANGOImage method is:
121%
122% size_t RegisterPANGOImage(void)
123%
124*/
125ModuleExport size_t RegisterPANGOImage(void)
126{
127 MagickInfo
128 *entry;
129
130 entry=SetMagickInfo("PANGO");
131#if defined(MAGICKCORE_PANGO_DELEGATE)
132 entry->decoder=(DecodeImageHandler *) ReadPANGOImage;
133#endif
134 entry->description=ConstantString("Pango Markup Language");
135 entry->adjoin=MagickFalse;
136 entry->module=ConstantString("PANGO");
137 (void) RegisterMagickInfo(entry);
138 return(MagickImageCoderSignature);
139}
140
141/*
142%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
143% %
144% %
145% %
146% U n r e g i s t e r P A N G O I m a g e %
147% %
148% %
149% %
150%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
151%
152% UnregisterPANGOImage() removes format registrations made by the Pango module
153% from the list of supported formats.
154%
155% The format of the UnregisterPANGOImage method is:
156%
157% UnregisterPANGOImage(void)
158%
159*/
160ModuleExport void UnregisterPANGOImage(void)
161{
162 (void) UnregisterMagickInfo("PANGO");
163}