RosettaCodeData/Task/Bitmap-Read-a-PPM-file/J/bitmap-read-a-ppm-file-2.j

4 lines
120 B
Plaintext

myimg=: readppm jpath '~temp/myimg.ppm'
myimgGray=: toColor toGray myimg
myimgGray writeppm jpath '~temp/myimgGray.ppm'