Return name of an image XObject representing the given image.
(self, image)
| 1585 | self.writeObject(self.gouraudObject, gouraudDict) |
| 1586 | |
| 1587 | def imageObject(self, image): |
| 1588 | """Return name of an image XObject representing the given image.""" |
| 1589 | |
| 1590 | entry = self._images.get(id(image), None) |
| 1591 | if entry is not None: |
| 1592 | return entry[1] |
| 1593 | |
| 1594 | name = next(self._image_seq) |
| 1595 | ob = self.reserveObject(f'image {name}') |
| 1596 | self._images[id(image)] = (image, name, ob) |
| 1597 | return name |
| 1598 | |
| 1599 | def _unpack(self, im): |
| 1600 | """ |
no test coverage detected