Lines Matching refs:colors
467 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()
652 for (i = 0; i < colors; ++i) { in gdImagePngCtxEx()
658 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()