Lines Matching refs:brush
162 im->brush = 0;
215 im->brush = 0;
818 if (!im->brush) {
822 hy = gdImageSY(im->brush) / 2;
824 y2 = y1 + gdImageSY(im->brush);
825 hx = gdImageSX(im->brush) / 2;
827 x2 = x1 + gdImageSX(im->brush);
831 if (im->brush->trueColor) {
836 p = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
838 if (p != gdImageGetTransparent(im->brush)) {
851 p = gdImageGetPixel(im->brush, srcx, srcy);
852 tc = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
854 if (p != gdImageGetTransparent(im->brush)) {
867 p = gdImageGetPixel(im->brush, srcx, srcy);
869 if (p != gdImageGetTransparent(im->brush)) {
870 /* Truecolor brush. Very slow on a palette destination. */
871 if (im->brush->trueColor) {
1030 if (src->brush) {
1031 dst->brush = gdImageClone(src->brush);
2899 void gdImageSetBrush (gdImagePtr im, gdImagePtr brush)
2902 im->brush = brush;
2903 if (!im->trueColor && !im->brush->trueColor) {
2904 for (i = 0; i < gdImageColorsTotal(brush); i++) {
2906 index = gdImageColorResolveAlpha(im, gdImageRed(brush, i), gdImageGreen(brush, i), gdImageBlue(brush, i), gdImageAlpha(brush, i));