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

Method gamma_with

src/__init__.py:13624–13630  ·  view source on GitHub ↗

Apply correction with some float. gamma=1 is a no-op.

(self, gamma)

Source from the content-addressed store, hash-verified

13622 return bytes(ret)
13623
13624 def gamma_with(self, gamma):
13625 """Apply correction with some float.
13626 gamma=1 is a no-op."""
13627 if not mupdf.fz_pixmap_colorspace( self.this):
13628 message_warning("colorspace invalid for function")
13629 return
13630 mupdf.fz_gamma_pixmap( self.this, gamma)
13631
13632 @property
13633 def h(self):

Callers

nothing calls this directly

Calls 1

message_warningFunction · 0.85

Tested by

no test coverage detected