Ejemplo n.º 1
0
static bool HHVM_METHOD(ImagickDraw, setStrokePatternURL,
    const String& stroke_url) {
  auto wand = getDrawingWandResource(Object{this_});
  auto status = DrawSetStrokePatternURL(wand->getWand(), stroke_url.c_str());
  if (status == MagickFalse) {
    IMAGICKDRAW_THROW("Unable to set stroke pattern URL");
  }
  return true;
}
Ejemplo n.º 2
0
MAGICK_NET_EXPORT void DrawingWand_StrokePatternUrl(DrawingWand *instance, const char *url, ExceptionInfo **exception)
{
  DrawSetStrokePatternURL(instance, url);
  MAGICK_NET_SET_DRAW_EXCEPTION;
}