Bitmap/Read a PPM file: Difference between revisions
Content added Content deleted
Line 180: | Line 180: | ||
output_ppm ~oc:stdout ~img; |
output_ppm ~oc:stdout ~img; |
||
;;</ocaml> |
;;</ocaml> |
||
sending the result to <code>stdout</code> allows to see the result without creating a temporary file sending it through a pipe to the '''display''' |
sending the result to <code>stdout</code> allows to see the result without creating a temporary file sending it through a pipe to the '''display''' utility of ''ImageMagick'': |
||
ocaml script.ml | display - |
ocaml script.ml | display - |