{"id":"graphics.image--CreateGraphicsImageFileByteSource","name":"CreateGraphicsImageFileByteSource","owner":"yeho","package":"graphics.image","kind":"function","signature":"external CreateGraphicsImageFileByteSource(text contentIdentity, text format, text path, list of byte bytes, int byteLimit, text source) returns graphicsImageByteSource","description":"Create graphics image file byte source from the supplied values.","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":"bytes","type":"list of byte","description":"Supply bytes as list of byte."},{"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":129,"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 CreateGraphicsImageFileByteSource","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\"\nlist of byte bytes = []\nint byteLimit = 1\ntext source = \"example\"\ngraphicsImageByteSource result = CreateGraphicsImageFileByteSource(contentIdentity, format, path, bytes, byteLimit, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_image__creategraphicsimagefilebytesource\"\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":"91185447ad36e6e4bd3bae8b3b20b29c3f3aa88fb915a53b1f9302fb93d2881e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.image--CreateGraphicsImageFileByteSource","json":"https://demonhunterlabs.com/reference/items/graphics.image--CreateGraphicsImageFileByteSource.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.image--CreateGraphicsImageFileByteSource.md"}
