+2010-11-21 6.6.6-0 Cristy <quetzlzacatenango@image...>
+ * Add DrawGetFontResolution() / DrawSetFontResolution().
+
2009-10-10 6.5.6-10 Cristy <quetzlzacatenango@image...>
* Add MagickSetImageArtifact(), etc. Wand artifacts are like properties
except they are not exported. They are needed for some method such
% %
% %
% %
+% D r a w G e t F o n t R e s o l u t i o n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DrawGetFontResolution() gets the image X and Y resolution.
+%
+% The format of the DrawGetFontResolution method is:
+%
+% DrawBooleanType DrawGetFontResolution(const DrawingWand *wand,
+% double *x,double *y)
+%
+% A description of each parameter follows:
+%
+% o wand: the magick wand.
+%
+% o x: the x-resolution.
+%
+% o y: the y-resolution.
+%
+*/
+WandExport MagickBooleanType DrawGetFontResolution(const DrawingWand *wand,
+ double *x,double *y)
+{
+ assert(wand != (DrawingWand *) NULL);
+ assert(wand->signature == WandSignature);
+ if (wand->debug != MagickFalse)
+ (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
+ *x=72.0;
+ *y=72.0;
+ if (CurrentContext->density != (char *) NULL)
+ {
+ GeometryInfo
+ geometry_info;
+
+ MagickStatusType
+ flags;
+
+ flags=ParseGeometry(CurrentContext->density,&geometry_info);
+ *x=geometry_info.rho;
+ *y=geometry_info.sigma;
+ if ((flags & SigmaValue) == MagickFalse)
+ *y=(*x);
+ }
+ return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
% D r a w G e t F o n t S i z e %
% %
% %
% %
% %
% %
+% D r a w S e t F o n t R e s o l u t i o n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DrawSetFontResolution() sets the image resolution.
+%
+% The format of the DrawSetFontResolution method is:
+%
+% DrawBooleanType DrawSetFontResolution(DrawingWand *wand,
+% const double x_resolution,const doubtl y_resolution)
+%
+% A description of each parameter follows:
+%
+% o wand: the magick wand.
+%
+% o x_resolution: the image x resolution.
+%
+% o y_resolution: the image y resolution.
+%
+*/
+WandExport MagickBooleanType DrawSetFontResolution(DrawingWand *wand,
+ const double x_resolution,const double y_resolution)
+{
+ char
+ density[MaxTextExtent];
+
+ assert(wand != (DrawingWand *) NULL);
+ assert(wand->signature == WandSignature);
+ if (wand->debug != MagickFalse)
+ (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
+ (void) FormatMagickString(density,MaxTextExtent,"%gx%g",x_resolution,
+ y_resolution);
+ (void) CloneString(&CurrentContext->density,density);
+ return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
% D r a w S e t O p a c i t y %
% %
% %
DrawClearException(DrawingWand *),
DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
const double,const double,MagickWand *),
+ DrawGetFontResolution(const DrawingWand *,double *,double *),
DrawGetStrokeAntialias(const DrawingWand *),
DrawGetTextAntialias(const DrawingWand *),
DrawPopPattern(DrawingWand *),
DrawSetFillPatternURL(DrawingWand *,const char *),
DrawSetFont(DrawingWand *,const char *),
DrawSetFontFamily(DrawingWand *,const char *),
+ DrawSetFontResolution(DrawingWand *,const double,const double),
DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
DrawSetStrokePatternURL(DrawingWand *,const char *),
DrawSetVectorGraphics(DrawingWand *,const char *),
% %
% %
% %
+% M a g i c k G e t R e s o l u t i o n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% MagickGetResolution() gets the image X and Y resolution.
+%
+% The format of the MagickGetResolution method is:
+%
+% MagickBooleanType MagickGetResolution(const MagickWand *wand,double *x,
+% double *y)
+%
+% A description of each parameter follows:
+%
+% o wand: the magick wand.
+%
+% o x: the x-resolution.
+%
+% o y: the y-resolution.
+%
+*/
+WandExport MagickBooleanType MagickGetResolution(const MagickWand *wand,
+ double *x,double *y)
+{
+ assert(wand != (MagickWand *) NULL);
+ assert(wand->signature == WandSignature);
+ if (wand->debug != MagickFalse)
+ (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
+ *x=72.0;
+ *y=72.0;
+ if (wand->image_info->density != (char *) NULL)
+ {
+ GeometryInfo
+ geometry_info;
+
+ MagickStatusType
+ flags;
+
+ flags=ParseGeometry(wand->image_info->density,&geometry_info);
+ *x=geometry_info.rho;
+ *y=geometry_info.sigma;
+ if ((flags & SigmaValue) == MagickFalse)
+ *y=(*x);
+ }
+ return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
% M a g i c k G e t R e s o u r c e %
% %
% %
MagickDeleteOption(MagickWand *,const char *),
MagickGetAntialias(const MagickWand *),
MagickGetPage(const MagickWand *,size_t *,size_t *,ssize_t *,ssize_t *),
+ MagickGetResolution(const MagickWand *,double *,double *),
MagickGetSize(const MagickWand *,size_t *,size_t *),
MagickGetSizeOffset(const MagickWand *,ssize_t *),
MagickProfileImage(MagickWand *,const char *,const void *,const size_t),