Esempio n. 1
0
/* {{{ proto int GmagickDraw::getStrokeMiterLimit()
        Returns the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.
*/
PHP_METHOD(gmagickdraw, getstrokemiterlimit)
{
        php_gmagickdraw_object *internd;
        unsigned long miter_limit;

        if (zend_parse_parameters_none() == FAILURE) {
                return;
        }
        
        internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
        miter_limit = DrawGetStrokeMiterLimit(internd->drawing_wand);

        RETVAL_LONG(miter_limit);
}
Esempio n. 2
0
static int64_t HHVM_METHOD(ImagickDraw, getStrokeMiterLimit) {
  auto wand = getDrawingWandResource(Object{this_});
  return DrawGetStrokeMiterLimit(wand->getWand());
}