コード例 #1
0
/* {{{ proto bool GmagickDraw::setStrokeMiterLimit(int miterlimit)
        Specifies 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, setstrokemiterlimit)
{
        php_gmagickdraw_object *internd;
        long miter_limit;

        /* Parse parameters given to function */
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &miter_limit) == FAILURE) {
                return;
        }
        
        internd = (php_gmagickdraw_object *) zend_object_store_get_object(getThis() TSRMLS_CC);

        DrawSetStrokeMiterLimit(internd->drawing_wand, miter_limit);
        GMAGICK_CHAIN_METHOD;
}
コード例 #2
0
ファイル: imagickdraw.cpp プロジェクト: facebook/hhvm
static bool HHVM_METHOD(ImagickDraw, setStrokeMiterLimit,
    int64_t miterlimit) {
  auto wand = getDrawingWandResource(Object{this_});
  DrawSetStrokeMiterLimit(wand->getWand(), miterlimit);
  return true;
}
コード例 #3
0
ファイル: DrawingWand.c プロジェクト: modulexcite/Magick.NET
MAGICK_NET_EXPORT void DrawingWand_StrokeMiterLimit(DrawingWand *instance, const size_t value, ExceptionInfo **exception)
{
  DrawSetStrokeMiterLimit(instance, value);
  MAGICK_NET_SET_DRAW_EXCEPTION;
}