Lines Matching refs:im
1431 gdImagePtr gdImageCreatePaletteFromTrueColor (gdImagePtr im, int dither, int colorsWanted) in gdImageCreatePaletteFromTrueColor() argument
1434 if (TRUE == gdImageTrueColorToPaletteBody(im, dither, colorsWanted, &nim)) { in gdImageCreatePaletteFromTrueColor()
1440 int gdImageTrueColorToPalette (gdImagePtr im, int dither, int colorsWanted) in gdImageTrueColorToPalette() argument
1442 return gdImageTrueColorToPaletteBody(im, dither, colorsWanted, 0); in gdImageTrueColorToPalette()
1570 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1572 if (im->alpha[i] > mt) in gdImageTrueColorToPaletteBody()
1575 mt = im->alpha[i]; in gdImageTrueColorToPaletteBody()
1578 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1580 if (im->alpha[i] == mt) in gdImageTrueColorToPaletteBody()
1582 im->alpha[i] = gdAlphaTransparent; in gdImageTrueColorToPaletteBody()
1590 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1592 if (im->alpha[i] < mo) in gdImageTrueColorToPaletteBody()
1595 mo = im->alpha[i]; in gdImageTrueColorToPaletteBody()
1598 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1600 if (im->alpha[i] == mo) in gdImageTrueColorToPaletteBody()
1602 im->alpha[i] = gdAlphaOpaque; in gdImageTrueColorToPaletteBody()