/* {{{ proto bool GmagickDraw::setStrokeOpacity(float stroke_opacity)
	Specifies the opacity of stroked object outlines.
*/
PHP_METHOD(gmagickdraw, setstrokeopacity)
{
	php_gmagickdraw_object *internd;
	double opacity;

	/* Parse parameters given to function */
	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) {
		return;
	}

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

	DrawSetStrokeOpacity(internd->drawing_wand, opacity);
	GMAGICK_CHAIN_METHOD;
}
Beispiel #2
0
static bool HHVM_METHOD(ImagickDraw, setStrokeOpacity,
    double stroke_opacity) {
  auto wand = getDrawingWandResource(Object{this_});
  DrawSetStrokeOpacity(wand->getWand(), stroke_opacity);
  return true;
}
Beispiel #3
0
static bool HHVM_METHOD(ImagickDraw, setStrokeAlpha, double opacity) {
  auto wand = getDrawingWandResource(this_);
  DrawSetStrokeOpacity(wand->getWand(), opacity);
  return true;
}
Beispiel #4
0
MAGICK_NET_EXPORT void DrawingWand_StrokeOpacity(DrawingWand *instance, const double value, ExceptionInfo **exception)
{
  DrawSetStrokeOpacity(instance, value);
  MAGICK_NET_SET_DRAW_EXCEPTION;
}