MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / draw_image_file

Method draw_image_file

pager/pagerctl.py:635–637  ·  view source on GitHub ↗

Load and draw image from file in one call. Returns 0 on success.

(self, x, y, filepath)

Source from the content-addressed store, hash-verified

633 _lib.pager_draw_image_scaled(x, y, w, h, handle)
634
635 def draw_image_file(self, x, y, filepath):
636 """Load and draw image from file in one call. Returns 0 on success."""
637 return _lib.pager_draw_image_file(x, y, filepath.encode())
638
639 def draw_image_file_scaled(self, x, y, w, h, filepath):
640 """Load and draw image from file, scaled. Returns 0 on success."""

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected