def drawRect(self, rect):
        """Draw a rectangle.
        """
        r = Rect(rect)
        self.draw_cont += "%g %g %g %g re\n" % JM_TUPLE(list(r.bl * self.ipctm) + \
                                               [r.width, r.height])
        self.updateRect(r)
        self.lastPoint = r.tl
        return self.lastPoint