The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Relating to viewtopic.php?t=17486&p=65761 i think it'd make more sense if a drawsetresolution and drawgetresolution to set and retrieve the density was added to the api. This would allow much simpler access to the density property.
WandExport MagickBooleanType DrawGetResolution(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);
// density needs to be split here unless there's a helper function?
// not sure how to extract first resolution part *x=;
// as above *y=;
return(MagickTrue);
}