DOCS v0.1.13 github

@hatch:image v0.1.5

Image encode + decode. PNG / JPG / BMP / WebP in, RGBA8 buffer out — Image.decode(bytes) feeds straight into @hatch:gpu's Device.uploadImage(image), and Image.encodePng(...) writes synthesized buffers back out. Backed by the image crate.

stable data updated May 3, 2026 source ↗
README
$ hatch add @hatch:image

MOD image

CL ImageCore

FN ImageCore.static decode(bytes)

FN ImageCore.static encode(format, width, height, pixels)

CL Image

NEW Image.new_(width, height, pixels)

GET Image.width

GET Image.height

GET Image.pixels

GET Image.toString

FN Image.static decode(bytes)

FN Image.static encode(format, width, height, pixels)

FN Image.static encodePng(width, height, pixels)

FN Image.static encodeJpeg(width, height, pixels)

FN Image.static encodeBmp(width, height, pixels)

FN Image.static new(width, height, pixels)