コード例 #1
0
/* {{{ proto int GmagickDraw::getTextDecoration()
	Returns the decoration applied when annotating with text.
*/
PHP_METHOD(gmagickdraw, gettextdecoration)
{
	php_gmagickdraw_object *internd;
	long decoration;
	
	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
		return;
	}

	internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC);

	decoration = DrawGetTextDecoration(internd->drawing_wand);
	ZVAL_LONG(return_value, decoration);
	return;
}
コード例 #2
0
ファイル: imagickdraw.cpp プロジェクト: facebook/hhvm
static int64_t HHVM_METHOD(ImagickDraw, getTextDecoration) {
  auto wand = getDrawingWandResource(Object{this_});
  return DrawGetTextDecoration(wand->getWand());
}