// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.jpg.maker =pkg core.2d.jpg.maker =title core.2d.jpg.maker =short encoding JPEG files =desc This package contains a function to encode with the JPEG file format (*.jpg or *.jpeg files). // // //------------------ PROTO ----------------------------------------------------- jpgFromBitmap +Proto jpgFromBitmap =type fun Bitmap Int -> Str =mode function =pkg core.2d.jpg.maker =impl mcy =link =desc This function computes the jpeg encoding of the bitmap bmp, specifying the quality percentage from 0 to 100. // +arg bmp =type Bitmap =desc A bitmap // +arg quality =type Int =desc An integer from 0 to 100 // +arg result =type Str =desc A binary string encoding the bitmap as a jpeg content.