// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.jpg =pkg core.2d.jpg =title core.2d.jpg =short decoding JPEG files =desc This package contains a function to decode the JPEG file format (*.jpg or *.jpeg files). // // //------------------ PROTO ----------------------------------------------------- bitmapFromJpg +Proto bitmapFromJpg =type fun Str -> Bitmap =mode function =pkg core.2d.jpg =impl mcy =link =desc This function creates a bitmap from the content of the jpeg data. Jpeg format does not support alpha channel. The resulting bitmap has its alpha channel set to 255 (full opacity). // +arg data =type Str =desc A binary string with the content of a jpeg file // +arg result =type Bitmap =desc The bitmap defined by the jpeg data