{"id":"graphics.canvas--DrawImageBgra8RegionFiltered","name":"DrawImageBgra8RegionFiltered","owner":"yeho","package":"graphics.canvas","kind":"function","signature":"external DrawImageBgra8RegionFiltered(text resourceId, int generation, text contentIdentity, text payloadHex, int sourceWidth, int sourceHeight, int cropX, int cropY, int cropWidth, int cropHeight, int x, int y, int width, int height, int red, int green, int blue, int alpha, text filter) returns bool","description":"Provider-selected sampling is an explicit fast path. Callers retain the deterministic prepared-image path whenever the current provider does not advertise the requested execution mode.","context":"Draw 2D shapes, text, images, and composited interface content.","parameters":[{"name":"resourceId","type":"text","description":"Supply resource id as text."},{"name":"generation","type":"int","description":"Supply generation as int."},{"name":"contentIdentity","type":"text","description":"Supply content identity as text."},{"name":"payloadHex","type":"text","description":"Supply payload hex as text."},{"name":"sourceWidth","type":"int","description":"Supply source width as int."},{"name":"sourceHeight","type":"int","description":"Supply source height as int."},{"name":"cropX","type":"int","description":"Supply crop x as int."},{"name":"cropY","type":"int","description":"Supply crop y as int."},{"name":"cropWidth","type":"int","description":"Supply crop width as int."},{"name":"cropHeight","type":"int","description":"Supply crop height as int."},{"name":"x","type":"int","description":"Supply x as int."},{"name":"y","type":"int","description":"Supply y as int."},{"name":"width","type":"int","description":"Supply width as int."},{"name":"height","type":"int","description":"Supply height as int."},{"name":"red","type":"int","description":"Supply red as int."},{"name":"green","type":"int","description":"Supply green as int."},{"name":"blue","type":"int","description":"Supply blue as int."},{"name":"alpha","type":"int","description":"Supply alpha as int."},{"name":"filter","type":"text","description":"Supply filter as text."}],"returns":"bool","members":[],"tags":["canvas","cpu","function","graphics","graphics.canvas","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/canvas/canvas.yh","line":96,"sha256":"6ccd4ec500a65b2f8a7447e335a0f6661c8b064e12be567abc0974e818716f45"},"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 DrawImageBgra8RegionFiltered","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.canvas\n\n// Draw 2D shapes, text, images, and composited interface content.\ntext resourceId = \"resource Id\"\nint generation = 1\ntext contentIdentity = \"sample\"\ntext payloadHex = \"payload Hex\"\nint sourceWidth = 1\nint sourceHeight = 1\nint cropX = 1\nint cropY = 1\nint cropWidth = 1\nint cropHeight = 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 = DrawImageBgra8RegionFiltered(resourceId, generation, contentIdentity, payloadHex, sourceWidth, sourceHeight, cropX, cropY, cropWidth, cropHeight, x, y, width, height, red, green, blue, alpha, filter)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_canvas__drawimagebgra8regionfiltered\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"ccd8ccf615d10284b7f3d2e00b5280e873c258d1f0fcdc6f8cf7463e23b98a55","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.canvas--DrawImageBgra8RegionFiltered","json":"https://demonhunterlabs.com/reference/items/graphics.canvas--DrawImageBgra8RegionFiltered.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.canvas--DrawImageBgra8RegionFiltered.md"}
