// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.png =pkg core.2d.png =title core.2d.png =short decoding PNG files =desc This package contains a function to decode the PNG file format (*.png files). // // //------------------ PROTO ----------------------------------------------------- bitmapFromPng +Proto bitmapFromPng =type fun Str -> Bitmap =mode function =pkg core.2d.png =impl mcy =link =desc This function creates a bitmap from the content of the png data. // +arg data =type Str =desc A binary string with the content of a png file // +arg result =type Bitmap =desc The bitmap defined by the png data