#include "magick/quantum-private.h"
#include "magick/property.h"
#include "magick/resource_.h"
+#include "magick/semaphore.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/token-private.h"
#endif /* defined(FT_BBOX_H) */
#endif
\f
+/*
+ Annotate semaphores.
+*/
+static SemaphoreInfo
+ *annotate_semaphore = (SemaphoreInfo *) NULL;
+\f
/*
Forward declarations.
*/
% %
% %
% %
++ A n n o t a t e C o m p o n e n t G e n e s i s %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% AnnotateComponentGenesis() instantiates the annotate component.
+%
+% The format of the AnnotateComponentGenesis method is:
+%
+% MagickBooleanType AnnotateComponentGenesis(void)
+%
+*/
+MagickExport MagickBooleanType AnnotateComponentGenesis(void)
+{
+ AcquireSemaphoreInfo(&annotate_semaphore);
+ return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
++ A n n o t a t e C o m p o n e n t T e r m i n u s %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% AnnotateComponentTerminus() destroys the annotate component.
+%
+% The format of the AnnotateComponentTerminus method is:
+%
+% AnnotateComponentTerminus(void)
+%
+*/
+MagickExport void AnnotateComponentTerminus(void)
+{
+ if (annotate_semaphore == (SemaphoreInfo *) NULL)
+ AcquireSemaphoreInfo(&annotate_semaphore);
+ DestroySemaphoreInfo(&annotate_semaphore);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
% A n n o t a t e I m a g e %
% %
% %
height,
width;
+ if (annotate_semaphore == (SemaphoreInfo *) NULL)
+ AcquireSemaphoreInfo(&annotate_semaphore);
+ LockSemaphoreInfo(annotate_semaphore);
if (display == (Display *) NULL)
{
const char
}
cache_info=(*draw_info);
}
+ UnlockSemaphoreInfo(annotate_semaphore);
/*
Initialize annotate info.
*/
#include "magick/draw.h"
extern MagickExport MagickBooleanType
+ AnnotateComponentGenesis(void),
AnnotateImage(Image *,const DrawInfo *),
GetMultilineTypeMetrics(Image *,const DrawInfo *,TypeMetric *),
GetTypeMetrics(Image *,const DrawInfo *,TypeMetric *);
FormatMagickCaption(Image *,DrawInfo *,const MagickBooleanType,TypeMetric *,
char **);
+extern MagickExport void
+ AnnotateComponentTerminus(void);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
Include declarations.
*/
#include "magick/studio.h"
+#include "magick/annotate.h"
#include "magick/blob.h"
#include "magick/cache.h"
#include "magick/coder.h"
(void) TypeComponentGenesis();
(void) MimeComponentGenesis();
(void) ConstituteComponentGenesis();
+ (void) AnnotateComponentGenesis();
#if defined(MAGICKCORE_X11_DELEGATE)
(void) XComponentGenesis();
#endif
#if defined(MAGICKCORE_X11_DELEGATE)
XComponentTerminus();
#endif
+ AnnotateComponentTerminus();
ConstituteComponentTerminus();
MimeComponentTerminus();
TypeComponentTerminus();