Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 25 of 30) sorted by relevance

12

/PHP-7.2/ext/gd/tests/
H A Dbug36697-mb.phpt23 $colors = imagecolorsforindex($im, $c);
24 echo $colors['red'] . ' ' . $colors['green'] . ' ' . $colors['blue'];
H A Dbug36697.phpt23 $colors = imagecolorsforindex($im, $c);
24 echo $colors['red'] . ' ' . $colors['green'] . ' ' . $colors['blue'];
H A Dimagecolorstotal_basic.phpt16 * Description: Find out the number of colors in an image's palette
26 echo 'Total colors in image: ' . imagecolorstotal($im);
35 Total colors in image: 128
H A Dcopyresized.phpt14 $colors = imagecolorsforindex($im, $c);
15 return ($colors['red'] << 16) + ($colors['green'] << 8) + ($colors['blue']);
H A Dimagetruecolortopalette_error4.phpt19 Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than %…
21 Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than %…
H A Dcopypalette.phpt25 echo "copy palette 255 colors: ";
43 copy palette 255 colors: ok
H A Dbug19366.phpt14 echo "Alive: Define colors\n";
47 Alive: Define colors
H A Dcrafted_gd2.phpt2 Test max colors for a gd image.
H A Dbug45799.phpt14 Warning: imagepng(): gd-png error: no colors in palette in %s on line %d
H A Dbug72697.phpt16 Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than 2…
H A Dbug70102.phpt2 Bug #70102 (imagecreatefromwebm() shifts colors)
H A Dbug75124.phpt2 Bug #75124 (gdImageGrayScale() may produce colors)
H A Dimagecolourstotal_basic.phpt17 * Description: Find out the number of colors in an image's palette
H A Dimagetruecolortopalette_error3.phpt28 Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than %…
H A Dimagecolorstotal_error.phpt15 * Description: Find out the number of colors in an image's palette
H A Dimagecopyresampled_variation1.phpt2 Test for correct colors of imagecopyresampled() wrt. alpha
/PHP-7.2/ext/gd/libgd/
H A Dgdxpm.c27 int *colors; in gdImageCreateFromXpm() local
45 colors = (int *) safe_emalloc(number, sizeof(int), 0); in gdImageCreateFromXpm()
122 colors[i] = gdImageColorResolve(im, red, green, blue); in gdImageCreateFromXpm()
129 gdImageSetPixel(im, j, i, colors[k]); in gdImageCreateFromXpm()
133 gdFree(colors); in gdImageCreateFromXpm()
H A Dgd_gif_out.c89 static int colorstobpp(int colors);
144 colorstobpp(int colors) in colorstobpp() argument
148 if ( colors <= 2 ) in colorstobpp()
150 else if ( colors <= 4 ) in colorstobpp()
152 else if ( colors <= 8 ) in colorstobpp()
154 else if ( colors <= 16 ) in colorstobpp()
156 else if ( colors <= 32 ) in colorstobpp()
158 else if ( colors <= 64 ) in colorstobpp()
160 else if ( colors <= 128 ) in colorstobpp()
162 else if ( colors <= 256 ) in colorstobpp()
H A Dgd_png.c484 int colors = im->colorsTotal; in gdImagePngCtxEx() local
566 colors = 0; in gdImagePngCtxEx()
569 mapping[i] = colors; in gdImagePngCtxEx()
570 ++colors; in gdImagePngCtxEx()
573 if (colors == 0) { in gdImagePngCtxEx()
577 if (colors < im->colorsTotal) { in gdImagePngCtxEx()
580 if (colors <= 2) { in gdImagePngCtxEx()
582 } else if (colors <= 4) { in gdImagePngCtxEx()
584 } else if (colors <= 16) { in gdImagePngCtxEx()
645 k = colors - 1; in gdImagePngCtxEx()
[all …]
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_set.h31 PHPDBG_SET(colors);
H A Dphpdbg_utils.c44 const static phpdbg_color_t colors[] = {
232 const phpdbg_color_t *color = colors; in phpdbg_get_color()
250 PHPDBG_G(colors)[element] = color; in phpdbg_set_color() local
259 } else PHPDBG_G(colors)[element] = colors; in phpdbg_set_color_ex() local
264 return colors; in phpdbg_get_colors()
311 PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code, in phpdbg_get_prompt()
H A Dphpdbg_set.c38 …PHPDBG_SET_COMMAND_D(colors, "usage: set colors [<on|off>]", 'C', set_colors, …
181 PHPDBG_SET(colors) /* {{{ */ in PHPDBG_SET() argument
H A DChangelog.md24 3. Added "set" command - control prompt and console colors
H A Dphpdbg.h308 const phpdbg_color_t *colors[PHPDBG_COLORS]; /* colors */ variable
H A Dphpdbg.c143 pg->colors[0] = NULL; in php_phpdbg_globals_ctor()
144 pg->colors[1] = NULL; in php_phpdbg_globals_ctor()
145 pg->colors[2] = NULL; in php_phpdbg_globals_ctor()
2120 memcpy(settings->colors, PHPDBG_G(colors), sizeof(settings->colors)); in main()

Completed in 56 milliseconds

12