Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/python-pptx-0.4.2/pptx/parts/slide.py   python-pptx(Download)
        """
        image = self._package._images.add_image(img_file)
        rId = self.relate_to(image, RT.IMAGE)
        return (image, rId)
 

src/p/y/python-docx-0.5.1/docx/parts/document.py   python-docx(Download)
        image_parts = self._package.image_parts
        image_part = image_parts.get_or_add_image_part(image_descriptor)
        rId = self.relate_to(image_part, RT.IMAGE)
        return (image_part, rId)
 

src/p/y/python-pptx-HEAD/pptx/parts/slide.py   python-pptx(Download)
        """
        image = self._package._images.add_image(img_file)
        rId = self.relate_to(image, RT.IMAGE)
        return (image, rId)