def png.raster

gralha-png-decode@0.1.0.1 · png.bend:176

import gralha-png-decode@0.1.0.1/png.bend as Png
import 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}

Uses (6)

Used by (1)