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