コード例 #1
0
/* {{{ proto int GmagickDraw::getStrokeLineJoin()
        Returns the shape to be used at the corners of paths (or other vector shapes) when they are stroked. Values of LineJoin are UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.
*/
PHP_METHOD(gmagickdraw, getstrokelinejoin)
{
        php_gmagickdraw_object *internd;
        long line_join;

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

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