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

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

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