/* {{{ proto int ImagickPixel::getColorCount() Returns the color count associated with this color. */ PHP_METHOD(imagickpixel, getcolorcount) { php_imagickpixel_object *internp; if (zend_parse_parameters_none() == FAILURE) { return; } internp = Z_IMAGICKPIXEL_P(getThis()); RETVAL_LONG(PixelGetColorCount(internp->pixel_wand)); }
/* {{{ proto int ImagickPixel::getColorCount() Returns the color count associated with this color. */ PHP_METHOD(imagickpixel, getcolorcount) { php_imagickpixel_object *internp; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) { return; } internp = (php_imagickpixel_object *)zend_object_store_get_object(getThis() TSRMLS_CC); RETVAL_LONG(PixelGetColorCount(internp->pixel_wand)); }
/* {{{ proto int GmagickPixel::getColorCount() Returns the color count associated with this color. */ PHP_METHOD(gmagickpixel, getcolorcount) { php_gmagickpixel_object *internp; zend_long color_count; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) { return; } internp = Z_GMAGICKPIXEL_OBJ_P(getThis()); color_count = PixelGetColorCount(internp->pixel_wand); RETVAL_LONG(color_count); }
static int64_t HHVM_METHOD(ImagickPixel, getColorCount) { auto wand = getPixelWandResource(this_); return PixelGetColorCount(wand->getWand()); }