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

Method load_image

tests/test_pager_code.py:394–399  ·  view source on GitHub ↗

Load image file. Returns handle.

(self, path)

Source from the content-addressed store, hash-verified

392
393 # ========== IMAGE SUPPORT ==========
394 def load_image(self, path):
395 """Load image file. Returns handle."""
396 handle = self._next_image_handle
397 self._next_image_handle += 1
398 self._loaded_images[handle] = path
399 return handle
400
401 def free_image(self, handle):
402 """Free loaded image."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected