MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / clear_with

Method clear_with

src/__init__.py:13566–13573  ·  view source on GitHub ↗

Fill all color components with same value.

(self, value=None, bbox=None)

Source from the content-addressed store, hash-verified

13564 return mupdf.fz_pixmap_alpha(self.this)
13565
13566 def clear_with(self, value=None, bbox=None):
13567 """Fill all color components with same value."""
13568 if value is None:
13569 mupdf.fz_clear_pixmap(self.this)
13570 elif bbox is None:
13571 mupdf.fz_clear_pixmap_with_value(self.this, value)
13572 else:
13573 JM_clear_pixmap_rect_with_value(self.this, value, JM_irect_from_py(bbox))
13574
13575 def color_count(self, colors=0, clip=None):
13576 '''

Callers 2

delete_imageMethod · 0.95
delete_imageFunction · 0.95

Calls 2

JM_irect_from_pyFunction · 0.85

Tested by

no test coverage detected