Home
last modified time | relevance | path

Searched refs:ncolors (Results 1 – 3 of 3) sorted by relevance

/PHP-8.1/ext/gd/libgd/
H A Dgdxpm.c34 number = image.ncolors; in gdImageCreateFromXpm()
H A Dgd_topal.c839 int i, x, ncolors; in find_nearby_colors() local
969 ncolors = 0; in find_nearby_colors()
973 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
975 return ncolors; in find_nearby_colors()
/PHP-8.1/ext/gd/
H A Dgd.c874 zend_long ncolors; in PHP_FUNCTION() local
877 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Obl", &IM, gd_image_ce, &dither, &ncolors) == FAILURE)… in PHP_FUNCTION()
883 if (ncolors <= 0 || ZEND_LONG_INT_OVFL(ncolors)) { in PHP_FUNCTION()
888 if (gdImageTrueColorToPalette(im, dither, (int)ncolors)) { in PHP_FUNCTION()

Completed in 21 milliseconds