예제 #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)
예제 #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)