Searched refs:npoints (Results 1 – 1 of 1) sorted by relevance
/PHP-8.3/ext/gd/ |
H A D | gd.c | 2569 int npoints, col, nelem, i; in php_imagepolygon() local 2588 npoints = NPOINTS; in php_imagepolygon() 2592 if (npoints < 3) { in php_imagepolygon() 2597 if (nelem < npoints * 2) { in php_imagepolygon() 2598 zend_value_error("Trying to use %d points in array with only %d points", npoints, nelem/2); in php_imagepolygon() 2602 points = (gdPointPtr) safe_emalloc(npoints, sizeof(gdPoint), 0); in php_imagepolygon() 2604 for (i = 0; i < npoints; i++) { in php_imagepolygon() 2619 gdImageOpenPolygon(im, points, npoints, col); in php_imagepolygon() 2622 gdImagePolygon(im, points, npoints, col); in php_imagepolygon() 2625 gdImageFilledPolygon(im, points, npoints, col); in php_imagepolygon()
|
Completed in 23 milliseconds