Lines Matching refs:brush
192 im->brush = 0;
245 im->brush = 0;
846 if (!im->brush) {
850 hy = gdImageSY(im->brush) / 2;
852 y2 = y1 + gdImageSY(im->brush);
853 hx = gdImageSX(im->brush) / 2;
855 x2 = x1 + gdImageSX(im->brush);
859 if (im->brush->trueColor) {
864 p = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
866 if (p != gdImageGetTransparent(im->brush)) {
879 p = gdImageGetPixel(im->brush, srcx, srcy);
880 tc = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
882 if (p != gdImageGetTransparent(im->brush)) {
895 p = gdImageGetPixel(im->brush, srcx, srcy);
897 if (p != gdImageGetTransparent(im->brush)) {
898 /* Truecolor brush. Very slow on a palette destination. */
899 if (im->brush->trueColor) {
2821 void gdImageSetBrush (gdImagePtr im, gdImagePtr brush)
2824 im->brush = brush;
2825 if (!im->trueColor && !im->brush->trueColor) {
2826 for (i = 0; i < gdImageColorsTotal(brush); i++) {
2828 index = gdImageColorResolveAlpha(im, gdImageRed(brush, i), gdImageGreen(brush, i), gdImageBlue(brush, i), gdImageAlpha(brush, i));