{"id":"frontend.yui--PrepareYuiPresentedLinearImageRegionV1","name":"PrepareYuiPresentedLinearImageRegionV1","owner":"yeho","package":"frontend.yui","kind":"function","signature":"external PrepareYuiPresentedLinearImageRegionV1(yuiRenderImageResource image, yuiRenderImagePresentation presentation, yuiRenderBounds sourceBounds, int destinationWidth, int destinationHeight, text resourceSlot, graphicsImageRgb8V1 tint, int opacity, graphicsImageRgba8V1 destinationPixel, text destinationContentIdentity, text source) returns yuiPreparedImageRegionV1","description":"On a native cache miss, bind sampling and presentation exactly once, then keep the source-pixel loop free of policy validation, cache formatting, and transfer-table parsing. Hex serialization is a separate bounded pass after all arithmetic pixels have been produced.","context":"Turn YUI models into a working frontend and its rendering/input adapters.","parameters":[{"name":"image","type":"yuiRenderImageResource","description":"Supply image as yuiRenderImageResource."},{"name":"presentation","type":"yuiRenderImagePresentation","description":"Supply presentation as yuiRenderImagePresentation."},{"name":"sourceBounds","type":"yuiRenderBounds","description":"Supply source bounds as yuiRenderBounds."},{"name":"destinationWidth","type":"int","description":"Supply destination width as int."},{"name":"destinationHeight","type":"int","description":"Supply destination height as int."},{"name":"resourceSlot","type":"text","description":"Supply resource slot as text."},{"name":"tint","type":"graphicsImageRgb8V1","description":"Supply tint as graphicsImageRgb8V1."},{"name":"opacity","type":"int","description":"Supply opacity as int."},{"name":"destinationPixel","type":"graphicsImageRgba8V1","description":"Supply destination pixel as graphicsImageRgba8V1."},{"name":"destinationContentIdentity","type":"text","description":"Supply destination content identity as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiPreparedImageRegionV1","members":[],"tags":["cpu","frontend","frontend.yui","function","source-example","yeho","yui"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/frontend/yui/render-image_sampling.yh","line":991,"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 PrepareYuiPresentedLinearImageRegionV1","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.\nyuiRenderImageResource image = yuiRenderImageResource(\"id\", \"kind\", 1, 1, 1, 4, \"png\", \"color Space\", \"alpha Mode\", \"state\", true, \"sample\", \"payload Hex\", \"example\")\nyuiRenderImagePresentation presentation = yuiRenderImagePresentation(\"fit\", 1, 1, 1, 1, 1, 1, 1, 1)\nyuiRenderBounds sourceBounds = yuiRenderBounds(1, 1, 1, 1)\nint destinationWidth = 1\nint destinationHeight = 1\ntext resourceSlot = \"resource Slot\"\ngraphicsImageRgb8V1 tint = graphicsImageRgb8V1(1, 1, 1)\nint opacity = 1\ngraphicsImageRgba8V1 destinationPixel = graphicsImageRgba8V1(1, 1, 1, 1)\ntext destinationContentIdentity = \"destination Content Identity\"\ntext source = \"example\"\nyuiPreparedImageRegionV1 result = PrepareYuiPresentedLinearImageRegionV1(image, presentation, sourceBounds, destinationWidth, destinationHeight, resourceSlot, tint, opacity, destinationPixel, destinationContentIdentity, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__prepareyuipresentedlinearimageregionv1\"\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":"baab31fa28baeb317723b813689b1b430ff797cf81e7eea2ac398ab49a07022c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=frontend.yui--PrepareYuiPresentedLinearImageRegionV1","json":"https://demonhunterlabs.com/reference/items/frontend.yui--PrepareYuiPresentedLinearImageRegionV1.json","markdown":"https://demonhunterlabs.com/reference/text/frontend.yui--PrepareYuiPresentedLinearImageRegionV1.md"}
