Bitmap/Read a PPM file: Difference between revisions
Content added Content deleted
Line 174: | Line 174: | ||
b_channel)</ocaml> |
b_channel)</ocaml> |
||
and converting a color file to grayscale: |
and converting a given color file to grayscale: |
||
<ocaml>let () = |
<ocaml>let () = |
||
let img = read_ppm ~filename:"logo.ppm" in |
let img = read_ppm ~filename:"logo.ppm" in |