{"id":"graphics.image--LoadGraphicsImageFileByteSource","name":"LoadGraphicsImageFileByteSource","owner":"yeho","package":"graphics.image","kind":"function","signature":"external LoadGraphicsImageFileByteSource(text contentIdentity, text format, text path, int byteLimit, text source) returns graphicsImageByteSource","description":"Reads through the bounded core File service and immediately snapshots the bytes, so callers never need to retain a mutable I/O buffer.","context":"Decode and represent image data, including bounded PNG, JPEG, WebP, and SVG paths.","parameters":[{"name":"contentIdentity","type":"text","description":"Supply content identity as text."},{"name":"format","type":"text","description":"Supply format as text."},{"name":"path","type":"text","description":"Supply path as text."},{"name":"byteLimit","type":"int","description":"Supply byte limit as int."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"graphicsImageByteSource","members":[],"tags":["cpu","function","graphics","graphics.image","image","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/image/encoded_source.yh","line":136,"sha256":"8aa706c90908490fb713fc547747a9e6f316bff2ecacd7d0d983a0f6ed7d702b"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use LoadGraphicsImageFileByteSource","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.image\n\n// Decode and represent image data, including bounded PNG, JPEG, WebP, and SVG paths.\ntext contentIdentity = \"sample\"\ntext format = \"png\"\ntext path = \"path\"\nint byteLimit = 1\ntext source = \"example\"\ngraphicsImageByteSource result = LoadGraphicsImageFileByteSource(contentIdentity, format, path, byteLimit, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_image__loadgraphicsimagefilebytesource\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"d56ed3d18b3e9e6f6bba01bfbee534d86f8dc5a43fafc7030f98bc2540a34d54","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.image--LoadGraphicsImageFileByteSource","json":"https://demonhunterlabs.com/reference/items/graphics.image--LoadGraphicsImageFileByteSource.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.image--LoadGraphicsImageFileByteSource.md"}
