graphics.image · function ·
CreateGraphicsImageByteSourceFailure
Create graphics image byte source failure from the supplied values.
Decode and represent image data, including bounded PNG, JPEG, WebP, and SVG paths.
external CreateGraphicsImageByteSourceFailure(text format, text originKind, text locator, text diagnostic, text source) returns graphicsImageByteSourceStatus: source-declared
Parameters
text format- Supply format as text.
text originKind- Supply origin kind as text.
text locator- Supply locator as text.
text diagnostic- Supply diagnostic as text.
text source- Supply source as text.
Use CreateGraphicsImageByteSourceFailure
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using graphics.image
// Decode and represent image data, including bounded PNG, JPEG, WebP, and SVG paths.
text format = "png"
text originKind = "origin Kind"
text locator = "locator"
text diagnostic = "diagnostic"
text source = "example"
graphicsImageByteSource result = CreateGraphicsImageByteSourceFailure(format, originKind, locator, diagnostic, source)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_image__creategraphicsimagebytesourcefailure"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/graphics/image/encoded_source.yh:142