def png.raster
import gralha-png-decode@0.1.0.1/png.bend as Pngimport Base
import gralha-image@0.1.0.1/image.bend as Img
176def png.raster(result: Maybe<&2, Img.Pixels>, w: U32, h: U32, depth: Nat) -> Img.Picture:
177 match result:
178 case None{}: Img.Picture{0, 0, 0n, Img.Flat{Img.clear()}}
179 case Some{pixels}: Img.Picture{w, h, depth, pixels}