{"id":"ui--CreateYuiRenderSizedImagePresentation","name":"CreateYuiRenderSizedImagePresentation","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiRenderSizedImagePresentation(text fit, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int naturalWidth, int naturalHeight, int sliceLeft, int sliceTop, int sliceRight, int sliceBottom, int destinationSliceLeft, int destinationSliceTop, int destinationSliceRight, int destinationSliceBottom) returns yuiRenderImagePresentation","description":"Create yui render sized 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":"naturalWidth","type":"int","description":"Supply natural width as int."},{"name":"naturalHeight","type":"int","description":"Supply natural 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":"destinationSliceLeft","type":"int","description":"Supply destination slice left as int."},{"name":"destinationSliceTop","type":"int","description":"Supply destination slice top as int."},{"name":"destinationSliceRight","type":"int","description":"Supply destination slice right as int."},{"name":"destinationSliceBottom","type":"int","description":"Supply destination slice bottom as int."}],"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":882,"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 CreateYuiRenderSizedImagePresentation","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 naturalWidth = 1\nint naturalHeight = 1\nint sliceLeft = 1\nint sliceTop = 1\nint sliceRight = 1\nint sliceBottom = 1\nint destinationSliceLeft = 1\nint destinationSliceTop = 1\nint destinationSliceRight = 1\nint destinationSliceBottom = 1\nyuiRenderImagePresentation result = CreateYuiRenderSizedImagePresentation(fit, sourceX, sourceY, sourceWidth, sourceHeight, naturalWidth, naturalHeight, sliceLeft, sliceTop, sliceRight, sliceBottom, destinationSliceLeft, destinationSliceTop, destinationSliceRight, destinationSliceBottom)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuirendersizedimagepresentation\"\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":"c9ec683a87d083feef7b071d9e7d728dceef5a3c73d5c7da67146ebed3d16827","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiRenderSizedImagePresentation","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiRenderSizedImagePresentation.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiRenderSizedImagePresentation.md"}
