/* {{{ proto bool GmagickDraw::setTextDecoration(int decoration) Specifies a decoration to be applied when annotating with text. */ PHP_METHOD(gmagickdraw, settextdecoration) { php_gmagickdraw_object *internd; long decoration; /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &decoration) == FAILURE) { return; } internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC); DrawSetTextDecoration(internd->drawing_wand, decoration); GMAGICK_CHAIN_METHOD; }
static bool HHVM_METHOD(ImagickDraw, setTextDecoration, int64_t decoration) { auto wand = getDrawingWandResource(Object{this_}); DrawSetTextDecoration(wand->getWand(), (DecorationType)decoration); return true; }
MAGICK_NET_EXPORT void DrawingWand_TextDecoration(DrawingWand *instance, const size_t value, ExceptionInfo **exception) { DrawSetTextDecoration(instance, (const DecorationType)value); MAGICK_NET_SET_DRAW_EXCEPTION; }