Home
last modified time | relevance | path

Searched refs:num_colors (Results 1 – 8 of 8) sorted by relevance

/PHP-8.0/ext/gd/tests/
H A Dimagetruecolortopalette_error4.phpt23 !! [ValueError] imagetruecolortopalette(): Argument #3 ($num_colors) must be greater than 0 and les…
24 !! [ValueError] imagetruecolortopalette(): Argument #3 ($num_colors) must be greater than 0 and les…
H A Dbug72697.phpt22 !! [ValueError] imagetruecolortopalette(): Argument #3 ($num_colors) must be greater than 0 and les…
H A Dimagetruecolortopalette_error3.phpt22 !! [ValueError] imagetruecolortopalette(): Argument #3 ($num_colors) must be greater than 0 and les…
/PHP-8.0/ext/gd/libgd/
H A Dgd_filter.c35 s.num_colors = 0; in gdImageScatter()
40 int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors) in gdImageScatterColor() argument
47 s.num_colors = num_colors; in gdImageScatterColor()
69 if (scatter->num_colors) { in gdImageScatterEx()
82 for (n = 0; n < scatter->num_colors; n++) { in gdImageScatterEx()
H A Dgd.h727 unsigned int num_colors; member
733 int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors);
/PHP-8.0/ext/gd/
H A Dgd.stub.php19 function imagetruecolortopalette(GdImage $image, bool $dither, int $num_colors): bool {} argument
H A Dgd.c3414 uint32_t num_colors = zend_hash_num_elements(Z_ARRVAL_P(hash_colors)); in php_image_filter_scatter() local
3418 if (num_colors == 0) { in php_image_filter_scatter()
3422 colors = emalloc(num_colors * sizeof(int)); in php_image_filter_scatter()
3428 RETVAL_BOOL(gdImageScatterColor(im, (int)scatter_sub, (int)scatter_plus, colors, num_colors)); in php_image_filter_scatter()
H A Dgd_arginfo.h28 ZEND_ARG_TYPE_INFO(0, num_colors, IS_LONG, 0)

Completed in 32 milliseconds