// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.png.maker =pkg core.2d.png.maker =title core.2d.png.maker =short encoding PNG files =desc This package contains functions to encode with the PNG file format (*.png files). // // //------------------ PROTO ----------------------------------------------------- pngFromBitmap +Proto pngFromBitmap =type fun Bitmap Bool -> Str =mode function =pkg core.2d.png.maker =impl mcy =link =desc This function computes the png encoding of the bitmap bmp. The alpha parameter decides whether the png contains the alpha channel. // +arg bmp =type Bitmap =desc A bitmap // +arg alpha =type Bool =desc A boolean // +arg result =type Str =desc A binary string encoding the bitmap as a png content.