graphics.image · function ·
DetectGraphicsImageByteSourceFormat
Detect graphics image byte source format.
Decode and represent image data, including bounded PNG, JPEG, WebP, and SVG paths.
external DetectGraphicsImageByteSourceFormat(graphicsImageByteSource encoded) returns graphicsImageFormatDetectionStatus: source-declared
Parameters
graphicsImageByteSource encoded- Supply encoded as graphicsImageByteSource.
Use DetectGraphicsImageByteSourceFormat
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.
graphicsImageByteSource encoded = graphicsImageByteSource(true, "sample", "png", "origin Kind", "locator", 4, 1, "payload Hex", "diagnostic", "example")
graphicsImageFormatDetection result = DetectGraphicsImageByteSourceFormat(encoded)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_image__detectgraphicsimagebytesourceformat"
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/format_detection.yh:107