+
+ gfxcxform_t cxform;
+ memset(&cxform, 0, sizeof(cxform));
+ cxform.rr = 1;
+ cxform.gg = 1;
+ cxform.bb = 1;
+ cxform.aa = 1;
+
+ gfxmatrix_t m;
+ memset(&m, 0, sizeof(m));
+ m.m00 = 1;
+ m.m11 = 1;
+ m.tx = x;
+ m.ty = y;
+
+ gfxline_t* rect = gfxline_makerectangle(0, 0, pi->img.width, pi->img.height);
+ gfxline_t* rect2 = gfxline_makerectangle(_x1, _y1, _x2, _y2);
+
+ output->startclip(output, rect2);
+ output->fillbitmap(output, rect, &pi->img, &m, &cxform);
+ output->endclip(output);
+ gfxline_free(rect);
+ gfxline_free(rect2);