Lines Matching refs:brush
162 im->brush = 0;
215 im->brush = 0;
816 if (!im->brush) {
820 hy = gdImageSY(im->brush) / 2;
822 y2 = y1 + gdImageSY(im->brush);
823 hx = gdImageSX(im->brush) / 2;
825 x2 = x1 + gdImageSX(im->brush);
829 if (im->brush->trueColor) {
834 p = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
836 if (p != gdImageGetTransparent(im->brush)) {
849 p = gdImageGetPixel(im->brush, srcx, srcy);
850 tc = gdImageGetTrueColorPixel(im->brush, srcx, srcy);
852 if (p != gdImageGetTransparent(im->brush)) {
865 p = gdImageGetPixel(im->brush, srcx, srcy);
867 if (p != gdImageGetTransparent(im->brush)) {
868 /* Truecolor brush. Very slow on a palette destination. */
869 if (im->brush->trueColor) {
1026 if (src->brush) {
1027 dst->brush = gdImageClone(src->brush);
2872 void gdImageSetBrush (gdImagePtr im, gdImagePtr brush)
2875 im->brush = brush;
2876 if (!im->trueColor && !im->brush->trueColor) {
2877 for (i = 0; i < gdImageColorsTotal(brush); i++) {
2879 index = gdImageColorResolveAlpha(im, gdImageRed(brush, i), gdImageGreen(brush, i), gdImageBlue(brush, i), gdImageAlpha(brush, i));