Lines Matching refs:tr
258 const int tr = gdImageGetPixel(im, gdImageSX(im) - 1, 0); in gdGuessBackgroundColorFromCorners() local
262 if (tr == bl && tr == br) { in gdGuessBackgroundColorFromCorners()
263 *color = tr; in gdGuessBackgroundColorFromCorners()
268 } else if (tl == tr && tl == br) { in gdGuessBackgroundColorFromCorners()
271 } else if (tl == tr && tl == bl) { in gdGuessBackgroundColorFromCorners()
274 } else if (tl == tr || tl == bl || tl == br) { in gdGuessBackgroundColorFromCorners()
277 } else if (tr == bl || tr == br) { in gdGuessBackgroundColorFromCorners()
278 *color = tr; 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()