Пример #1
0
/* {{{ proto int GmagickDraw::getFontStyle()
	Returns the font style used when annotating with text.
*/
PHP_METHOD(gmagickdraw, getfontstyle)
{
	php_gmagickdraw_object *internd;
	long font_style;
	
	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
		return;
	}

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

	font_style = DrawGetFontStyle(internd->drawing_wand);
	ZVAL_LONG(return_value, font_style);
	return;
}
Пример #2
0
static int64_t HHVM_METHOD(ImagickDraw, getFontStyle) {
  auto wand = getDrawingWandResource(Object{this_});
  return DrawGetFontStyle(wand->getWand());
}