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.
Image.decode(bytes)
@hatch:gpu
Device.uploadImage(image)
Image.encodePng(...)
image
ImageCore.static decode(bytes)
ImageCore.static encode(format, width, height, pixels)
Image.new_(width, height, pixels)
Image.width
Image.height
Image.pixels
Image.toString
Image.static decode(bytes)
Image.static encode(format, width, height, pixels)
Image.static encodePng(width, height, pixels)
Image.static encodeJpeg(width, height, pixels)
Image.static encodeBmp(width, height, pixels)
Image.static new(width, height, pixels)