Home
last modified time | relevance | path

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

/PHP-5.3/ext/gd/tests/
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 in %s on line %d
21 Warning: imagetruecolortopalette(): Number of colors has to be greater than zero in %s on line %d
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.phpt15 Warning: imagepng(): gd-png error: no colors in palette in %s on line %d
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 in %s on line %d
H A Dimagecolorstotal_error.phpt15 * Description: Find out the number of colors in an image's palette
/PHP-5.3/ext/gd/libgd/
H A Dgdxpm.c27 int *colors; in gdImageCreateFromXpm() local
40 colors = (int *) safe_emalloc(number, sizeof(int), 0); in gdImageCreateFromXpm()
117 colors[i] = gdImageColorResolve(im, red, green, blue); in gdImageCreateFromXpm()
124 gdImageSetPixel(im, j, i, colors[k]); in gdImageCreateFromXpm()
128 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.c467 int colors = im->colorsTotal; in gdImagePngCtxEx() local
543 colors = 0; in gdImagePngCtxEx()
546 mapping[i] = colors; in gdImagePngCtxEx()
547 ++colors; in gdImagePngCtxEx()
550 if (colors == 0) { in gdImagePngCtxEx()
554 if (colors < im->colorsTotal) { in gdImagePngCtxEx()
557 if (colors <= 2) { in gdImagePngCtxEx()
559 } else if (colors <= 4) { in gdImagePngCtxEx()
561 } else if (colors <= 16) { in gdImagePngCtxEx()
622 k = colors - 1; in gdImagePngCtxEx()
[all …]
/PHP-5.3/ext/fileinfo/tests/
H A Dmagic8410 #>10 byte&0x07 =0x00 2 colors
8411 #>10 byte&0x07 =0x01 4 colors
8412 #>10 byte&0x07 =0x02 8 colors
8413 #>10 byte&0x07 =0x03 16 colors
8414 #>10 byte&0x07 =0x04 32 colors
8415 #>10 byte&0x07 =0x05 64 colors
8416 #>10 byte&0x07 =0x06 128 colors
8417 #>10 byte&0x07 =0x07 256 colors
8785 >>8 leshort x %d colors
11396 >>8 byte 0 \b, 256-colors
[all …]
/PHP-5.3/
H A DNEWS4471 . colors allocated henceforth from the resulting image overwrite the palette
4472 colors (Rob Leslie)

Completed in 95 milliseconds