Bitmap/Read a PPM file: Difference between revisions

(→‎{{header|D}}: drastically improve reading :))
Line 96:
 
It is up to the caller to open the file and pass the handler to the function. So this code can be used in
[[Read image file through a pipe]] without modification. It only understandunderstands the P6 file format.
 
Interface:
Anonymous user