Lines Matching refs:colors
489 int colors = im->colorsTotal; in gdImagePngCtxEx() local
571 colors = 0; in gdImagePngCtxEx()
574 mapping[i] = colors; in gdImagePngCtxEx()
575 ++colors; in gdImagePngCtxEx()
578 if (colors == 0) { in gdImagePngCtxEx()
582 if (colors < im->colorsTotal) { in gdImagePngCtxEx()
585 if (colors <= 2) { in gdImagePngCtxEx()
587 } else if (colors <= 4) { in gdImagePngCtxEx()
589 } else if (colors <= 16) { in gdImagePngCtxEx()
650 k = colors - 1; in gdImagePngCtxEx()
680 for (i = 0; i < colors; ++i) { in gdImagePngCtxEx()
686 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()