{"id":"ui--CreateYuiSampledImagePresentation","name":"CreateYuiSampledImagePresentation","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiSampledImagePresentation(text fit, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int sliceLeft, int sliceTop, int sliceRight, int sliceBottom, text filter, text outputColorSpace, text samplingCacheIdentity) returns yuiRenderImagePresentation","description":"Create yui sampled image presentation from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"fit","type":"text","description":"Supply fit as text."},{"name":"sourceX","type":"int","description":"Supply source x as int."},{"name":"sourceY","type":"int","description":"Supply source y as int."},{"name":"sourceWidth","type":"int","description":"Supply source width as int."},{"name":"sourceHeight","type":"int","description":"Supply source height as int."},{"name":"sliceLeft","type":"int","description":"Supply slice left as int."},{"name":"sliceTop","type":"int","description":"Supply slice top as int."},{"name":"sliceRight","type":"int","description":"Supply slice right as int."},{"name":"sliceBottom","type":"int","description":"Supply slice bottom as int."},{"name":"filter","type":"text","description":"Supply filter as text."},{"name":"outputColorSpace","type":"text","description":"Supply output color space as text."},{"name":"samplingCacheIdentity","type":"text","description":"Supply sampling cache identity as text."}],"returns":"yuiRenderImagePresentation","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-00-definitions.yh","line":873,"sha256":"ffe87f06297c002c1b58e5728706712c19229c0c62ccc6729603984094373b51"},"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 CreateYuiSampledImagePresentation","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext fit = \"fit\"\nint sourceX = 1\nint sourceY = 1\nint sourceWidth = 1\nint sourceHeight = 1\nint sliceLeft = 1\nint sliceTop = 1\nint sliceRight = 1\nint sliceBottom = 1\ntext filter = \"filter\"\ntext outputColorSpace = \"output Color Space\"\ntext samplingCacheIdentity = \"sampling Cache Identity\"\nyuiRenderImagePresentation result = CreateYuiSampledImagePresentation(fit, sourceX, sourceY, sourceWidth, sourceHeight, sliceLeft, sliceTop, sliceRight, sliceBottom, filter, outputColorSpace, samplingCacheIdentity)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuisampledimagepresentation\"\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\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 = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"f57e3834dc134cd5a1883ec5be65355ef135bea1a1302049b724147cc1943da2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiSampledImagePresentation","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiSampledImagePresentation.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiSampledImagePresentation.md"}
