Lines Matching refs:color
28 static int gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color);
85 int color, match; in gdImageCropAuto() local
95 color = gdImageGetTransparent(im); in gdImageCropAuto()
99 color = gdImageColorClosestAlpha(im, 0, 0, 0, 0); in gdImageCropAuto()
103 color = gdImageColorClosestAlpha(im, 255, 255, 255, 0); in gdImageCropAuto()
107 gdGuessBackgroundColorFromCorners(im, &color); in gdImageCropAuto()
112 color = gdImageGetTransparent(im); in gdImageCropAuto()
124 match = (color == c2); in gdImageCropAuto()
138 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
146 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
154 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
181 gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) in gdImageCropThreshold() argument
200 if (!gdImageTrueColor(im) && color >= gdImageColorsTotal(im)) { in gdImageCropThreshold()
211 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
225 match = (gdColorMatch(im, color, gdImageGetPixel(im, x, y), threshold)) > 0; in gdImageCropThreshold()
233 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
241 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
255 static int gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color) in gdGuessBackgroundColorFromCorners() argument
263 *color = tr; in gdGuessBackgroundColorFromCorners()
266 *color = tl; in gdGuessBackgroundColorFromCorners()
269 *color = tl; in gdGuessBackgroundColorFromCorners()
272 *color = tl; in gdGuessBackgroundColorFromCorners()
275 *color = tl; in gdGuessBackgroundColorFromCorners()
278 *color = tr; in gdGuessBackgroundColorFromCorners()
281 *color = bl; in gdGuessBackgroundColorFromCorners()
290 *color = gdImageColorClosestAlpha(im, r, g, b, a); in gdGuessBackgroundColorFromCorners()