コード例 #1
0
/* {{{ proto int GmagickDraw::getStrokeLineCap()
        Returns the shape to be used at the end of open subpaths when they are stroked. Values of LineCap are UndefinedCap, ButtCap, RoundCap, and SquareCap.
*/
PHP_METHOD(gmagickdraw, getstrokelinecap)
{
        php_gmagickdraw_object *internd;
        long line_cap;

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

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