{"id":"frontend.yui--yuiPreparedImageRegionV1","name":"yuiPreparedImageRegionV1","owner":"yeho","package":"frontend.yui","kind":"thing","signature":"external thing yuiPreparedImageRegionV1","description":"A yui prepared image region v1 record carrying available, resourceId, nativeCacheIdentity, samplingCacheIdentity, presentationCacheIdentity, and related state.","context":"Turn YUI models into a working frontend and its rendering/input adapters.","parameters":[],"returns":"void","members":[{"name":"available","kind":"field","type":"bool","description":"Stores available as bool.","signature":"bool available","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"resourceId","kind":"field","type":"text","description":"Stores resource id as text.","signature":"text resourceId","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"nativeCacheIdentity","kind":"field","type":"text","description":"Stores native cache identity as text.","signature":"text nativeCacheIdentity","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"samplingCacheIdentity","kind":"field","type":"text","description":"Stores sampling cache identity as text.","signature":"text samplingCacheIdentity","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"presentationCacheIdentity","kind":"field","type":"text","description":"Stores presentation cache identity as text.","signature":"text presentationCacheIdentity","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"payloadHex","kind":"field","type":"text","description":"Stores payload hex as text.","signature":"text payloadHex","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"width","kind":"field","type":"int","description":"Stores width as int.","signature":"int width","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"height","kind":"field","type":"int","description":"Stores height as int.","signature":"int height","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","frontend.yui"],"updated":"2026-09-09"},{"name":"yuiPreparedImageRegionV1","kind":"constructor","parameters":[{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"yuiPreparedImageRegionV1(text source)","description":"Yui prepared image region v1.","tags":["thing","constructor","frontend.yui"],"updated":"2026-09-09"},{"name":"Snapshot","kind":"method","parameters":[],"returns":"text","signature":"Snapshot() returns text","description":"Snapshot.","tags":["thing","method","frontend.yui"],"exampleId":"method-Snapshot-11","updated":"2026-09-09"}],"tags":["cpu","frontend","frontend.yui","method","source-example","thing","yeho","yui"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/frontend/yui/render-image_sampling.yh","line":172,"sha256":"1b8292455494bdcaa055f5185be36941b83ac4527dce79c54944d477525c36bb"},"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 yuiPreparedImageRegionV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using frontend.yui\n\n// Turn YUI models into a working frontend and its rendering/input adapters.\nyuiPreparedImageRegionV1 sample = yuiPreparedImageRegionV1(\"example\")\nConsole.Log(Text.From(sample.available))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipreparedimageregionv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"a4321bf2a886f27a386cd0850aacf460ed9e0c2cb5fb1bf9d303d9a81ff09306","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Snapshot-11","title":"yuiPreparedImageRegionV1.Snapshot","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using frontend.yui\n\n// Snapshot.\nyuiPreparedImageRegionV1 instance = yuiPreparedImageRegionV1(\"example\")\ntext result = instance.Snapshot()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipreparedimageregionv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"e26ba24678605beaba7c13be57a2f2bdc498f346bf865db040a0e92a7dc60926","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["available","resourceId","nativeCacheIdentity","samplingCacheIdentity","presentationCacheIdentity","payloadHex","width","height","diagnostic","source","yuiPreparedImageRegionV1","Snapshot"],"url":"https://demonhunterlabs.com/academy/api?item=frontend.yui--yuiPreparedImageRegionV1","json":"https://demonhunterlabs.com/reference/items/frontend.yui--yuiPreparedImageRegionV1.json","markdown":"https://demonhunterlabs.com/reference/text/frontend.yui--yuiPreparedImageRegionV1.md"}
