Bitmap/Read a PPM file: Difference between revisions

Replaced "initImage" by "newImage" (change in "bitmap.nim" interface).
(Replaced "File" by "Stream" which allows to use "readPPM" with a pipe.)
(Replaced "initImage" by "newImage" (change in "bitmap.nim" interface).)
Line 1,410:
 
let header = f.header()
result = initImagenewImage(header.width, header.height)
 
var
Anonymous user