structPngImage
struct PngImage
width: int
height: int
pixels: int
endpng: reads PNG pictures into memory as rows of red, green, blue and alpha bytes. use "png.jamo" It includes its own reader for PNG's compression (deflate). Damaged files stop with a clear error.
struct PngImage
width: int
height: int
pixels: int
endstruct PngInflater
data: int
size: int
place: int
bits: int
bit_count: int
out: int
out_size: int
out_place: int
powers: [int]
endstruct PngCode
counts: [int]
symbols: [int]
endfunc png_damaged(why: string)
func png_number(data: string, place: int): int
func png_name(data: string, place: int): string
func decode_png(data: string): PngImage
func png_channels(color_type: int): int
func png_paeth(left: int, above: int, corner: int): int
--- Filters: each row was stored as its difference from the pixels before it ---
func png_unfilter(raw: int, width: int, height: int, channels: int)
func png_to_rgba(raw: int, width: int, height: int, color_type: int, palette: [int], see_through: [int]): int
func png_inflate(packed: int, size: int, out_size: int): int
--- Deflate, read the way zlib's small "puff" reader does it ---
func PngInflater.take(count: int): int
func PngInflater.put(value: int)
func PngInflater.copy_stored()
func png_make_code(lengths: [int], start: int, count: int): PngCode
func PngInflater.decode(code: PngCode): int
func png_fixed_lengths(): PngCode
func png_fixed_distances(): PngCode
func PngInflater.copy_dynamic()
func PngInflater.copy_coded(lengths: PngCode, distances: PngCode)