Exemplo n.º 1
0
def drawImage(self,
              image,
              x,
              y,
              width=None,
              height=None,
              mask=None,
              preserveAspectRatio=False,
              anchor='c'):
    if not isinstance(image, VectorPdf):
        return self._drawImageNotVectorPDF(image, x, y, width, height, mask,
                                           preserveAspectRatio, anchor)
    image.drawOn(self, x, y, width=width, height=height)
Exemplo n.º 2
0
def drawImage(self, image, x, y, width=None, height=None, mask=None, 
            preserveAspectRatio=False, anchor='c'):
    if not isinstance(image, VectorPdf):
        return self._drawImageNotVectorPDF(image, x, y, width, height, mask,
                  preserveAspectRatio, anchor)
    image.drawOn(self, x, y, width=width, height=height)