{"id":"runtime--Canvas.HasCachedImageBgra8","name":"Canvas.HasCachedImageBgra8","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.HasCachedImageBgra8(text resource_id, int generation, text content_identity, int source_width, int source_height) -> bool","description":"Has cached 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":"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"}],"returns":"bool","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1595,"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.HasCachedImageBgra8","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\"\nint source_width = 1\nint source_height = 1\nbool result = Canvas.HasCachedImageBgra8(resource_id, generation, content_identity, source_width, source_height)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_hascachedimagebgra8\"\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":"4b1a58cd32ac486b9774061f6a28800a660f95d63412992e5f4dfa3638e366e7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.HasCachedImageBgra8","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.HasCachedImageBgra8.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.HasCachedImageBgra8.md"}
