Lines Matching refs:brush
147 im->brush = 0;
203 im->brush = 0;
807 if (!im->brush) {
811 hy = gdImageSY(im->brush) / 2;
813 y2 = y1 + gdImageSY(im->brush);
814 hx = gdImageSX(im->brush) / 2;
816 x2 = x1 + gdImageSX(im->brush);
820 if (im->brush->trueColor) {
825 p = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
827 if (p != gdImageGetTransparent(im->brush)) {
840 p = gdImageGetPixel(im->brush, srcx, srcy);
841 tc = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
843 if (p != gdImageGetTransparent(im->brush)) {
856 p = gdImageGetPixel(im->brush, srcx, srcy);
858 if (p != gdImageGetTransparent(im->brush)) {
859 /* Truecolor brush. Very slow on a palette destination. */
860 if (im->brush->trueColor) {
2776 void gdImageSetBrush (gdImagePtr im, gdImagePtr brush)
2779 im->brush = brush;
2780 if (!im->trueColor && !im->brush->trueColor) {
2781 for (i = 0; i < gdImageColorsTotal(brush); i++) {
2783 index = gdImageColorResolveAlpha(im, gdImageRed(brush, i), gdImageGreen(brush, i), gdImageBlue(brush, i), gdImageAlpha(brush, i));