Lines Matching refs:tl
257 const int tl = gdImageGetPixel(im, 0, 0); in gdGuessBackgroundColorFromCorners() local
265 } else if (tl == bl && tl == br) { in gdGuessBackgroundColorFromCorners()
266 *color = tl; in gdGuessBackgroundColorFromCorners()
268 } else if (tl == tr && tl == br) { in gdGuessBackgroundColorFromCorners()
269 *color = tl; in gdGuessBackgroundColorFromCorners()
271 } else if (tl == tr && tl == bl) { in gdGuessBackgroundColorFromCorners()
272 *color = tl; in gdGuessBackgroundColorFromCorners()
274 } else if (tl == tr || tl == bl || tl == br) { in gdGuessBackgroundColorFromCorners()
275 *color = tl; in gdGuessBackgroundColorFromCorners()
286 …r = (int)(0.5f + (gdImageRed(im, tl) + gdImageRed(im, tr) + gdImageRed(im, bl) + gdImageRed(im, br… in gdGuessBackgroundColorFromCorners()
287 …g = (int)(0.5f + (gdImageGreen(im, tl) + gdImageGreen(im, tr) + gdImageGreen(im, bl) + gdImageGree… in gdGuessBackgroundColorFromCorners()
288 …b = (int)(0.5f + (gdImageBlue(im, tl) + gdImageBlue(im, tr) + gdImageBlue(im, bl) + gdImageBlue(im… in gdGuessBackgroundColorFromCorners()
289 …a = (int)(0.5f + (gdImageAlpha(im, tl) + gdImageAlpha(im, tr) + gdImageAlpha(im, bl) + gdImageAlph… in gdGuessBackgroundColorFromCorners()