{"id":"runtime--Canvas.DrawImageBgra8","name":"Canvas.DrawImageBgra8","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.DrawImageBgra8(text resource_id, int generation, text content_identity, text BGRA8_hex_payload, int source_width, int source_height, int x, int y, int width, int height, int alpha) -> bool","description":"Draw image bgra8 through the Canvas runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"resource_id","type":"text","description":"Supply resource id as text.","rule":"Text"},{"name":"generation","type":"int","description":"Supply generation as int.","rule":"AnyInteger"},{"name":"content_identity","type":"text","description":"Supply content identity as text.","rule":"Text"},{"name":"BGRA8_hex_payload","type":"text","description":"Supply bgra8 hex payload as text.","rule":"Text"},{"name":"source_width","type":"int","description":"Supply source width as int.","rule":"AnyInteger"},{"name":"source_height","type":"int","description":"Supply source height as int.","rule":"AnyInteger"},{"name":"x","type":"int","description":"Supply x as int.","rule":"AnyInteger"},{"name":"y","type":"int","description":"Supply y as int.","rule":"AnyInteger"},{"name":"width","type":"int","description":"Supply width as int.","rule":"AnyInteger"},{"name":"height","type":"int","description":"Supply height as int.","rule":"AnyInteger"},{"name":"alpha","type":"int","description":"Supply alpha as int.","rule":"AnyInteger"}],"returns":"bool","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1579,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Canvas.DrawImageBgra8","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text resource_id = \"resource id\"\nint generation = 1\ntext content_identity = \"content identity\"\ntext BGRA8_hex_payload = \"BGRA8 hex payload\"\nint source_width = 1\nint source_height = 1\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nint alpha = 1\nbool result = Canvas.DrawImageBgra8(resource_id, generation, content_identity, BGRA8_hex_payload, source_width, source_height, x, y, width, height, alpha)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_drawimagebgra8\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"3dec13f97ecc3bb13ff377a7590bb679b148522905168bb09f60d487550eeb1b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.DrawImageBgra8","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.DrawImageBgra8.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.DrawImageBgra8.md"}
