Invert the colors inside a bbox.
(self, bbox=None)
| 13635 | return mupdf.fz_pixmap_height(self.this) |
| 13636 | |
| 13637 | def invert_irect(self, bbox=None): |
| 13638 | """Invert the colors inside a bbox.""" |
| 13639 | pm = self.this |
| 13640 | if not mupdf.fz_pixmap_colorspace(pm).m_internal: |
| 13641 | message_warning("ignored for stencil pixmap") |
| 13642 | return False |
| 13643 | r = JM_irect_from_py(bbox) |
| 13644 | if mupdf.fz_is_infinite_irect(r): |
| 13645 | mupdf.fz_invert_pixmap(pm) |
| 13646 | return True |
| 13647 | mupdf.fz_invert_pixmap_rect(pm, r) |
| 13648 | return True |
| 13649 | |
| 13650 | @property |
| 13651 | def irect(self): |