{"id":"runtime--Canvas.DrawPixelsBgra8","name":"Canvas.DrawPixelsBgra8","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.DrawPixelsBgra8(buffer of int BGRA8_pixel_buffer, int source_width, int source_height, int x, int y, int width, int height) -> bool","description":"Draw pixels 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":"BGRA8_pixel_buffer","type":"buffer of int","description":"Supply bgra8 pixel buffer as buffer of int.","rule":"IntBuffer"},{"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"}],"returns":"bool","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1575,"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.DrawPixelsBgra8","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"buffer of int BGRA8_pixel_buffer\nBGRA8_pixel_buffer.Resize(8)\nint source_width = 1\nint source_height = 1\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nbool result = Canvas.DrawPixelsBgra8(BGRA8_pixel_buffer, source_width, source_height, x, y, width, height)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_drawpixelsbgra8\"\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":"0d6be6a167f2e4f7e674a338820249bef107293c8d4f7e18a36b640a73b806d0","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.DrawPixelsBgra8","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.DrawPixelsBgra8.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.DrawPixelsBgra8.md"}
