{"id":"runtime--Canvas.DrawImageBgra8RegionFiltered","name":"Canvas.DrawImageBgra8RegionFiltered","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.DrawImageBgra8RegionFiltered(text resource_id, int generation, text content_identity, text BGRA8_hex_payload, int source_width, int source_height, int crop_x, int crop_y, int crop_width, int crop_height, int x, int y, int width, int height, int red, int green, int blue, int alpha, text filter) -> bool","description":"Draw image bgra8 region filtered 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":"crop_x","type":"int","description":"Supply crop x as int.","rule":"AnyInteger"},{"name":"crop_y","type":"int","description":"Supply crop y as int.","rule":"AnyInteger"},{"name":"crop_width","type":"int","description":"Supply crop width as int.","rule":"AnyInteger"},{"name":"crop_height","type":"int","description":"Supply crop 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":"red","type":"int","description":"Supply red as int.","rule":"AnyInteger"},{"name":"green","type":"int","description":"Supply green as int.","rule":"AnyInteger"},{"name":"blue","type":"int","description":"Supply blue as int.","rule":"AnyInteger"},{"name":"alpha","type":"int","description":"Supply alpha as int.","rule":"AnyInteger"},{"name":"filter","type":"text","description":"Supply filter as text.","rule":"Text"}],"returns":"bool","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1587,"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.DrawImageBgra8RegionFiltered","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 crop_x = 1\nint crop_y = 1\nint crop_width = 1\nint crop_height = 1\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nint red = 1\nint green = 1\nint blue = 1\nint alpha = 1\ntext filter = \"filter\"\nbool result = Canvas.DrawImageBgra8RegionFiltered(resource_id, generation, content_identity, BGRA8_hex_payload, source_width, source_height, crop_x, crop_y, crop_width, crop_height, x, y, width, height, red, green, blue, alpha, filter)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_drawimagebgra8regionfiltered\"\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":"2933bf795fda0d797e4d4cece9c2356406db043f9f69023c1d4196686cada031","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.DrawImageBgra8RegionFiltered","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.DrawImageBgra8RegionFiltered.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.DrawImageBgra8RegionFiltered.md"}
