aboutsummaryrefslogtreecommitdiff
path: root/pnm/read.scm
diff options
context:
space:
mode:
Diffstat (limited to 'pnm/read.scm')
-rw-r--r--pnm/read.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/pnm/read.scm b/pnm/read.scm
index d13557e..42ded91 100644
--- a/pnm/read.scm
+++ b/pnm/read.scm
@@ -71,7 +71,7 @@
(pbm-image (make-pbm-image width height)))
(read-text-raster width height #f in
(lambda (x y v)
- (image-pixel-write! pbm-image x y (= v 1)))
+ (image-pixel-set! pbm-image x y (= v 1)))
unexpected-eof-error
unexpected-character-error)
pbm-image))
@@ -87,7 +87,7 @@
(read-bytevector (* 6 width height) in))))
((P3)
(let ((ppm-image (make-ppm-image width height maxval)))
- (read-text-raster width height #t in (image-pixel-writer ppm-image)
+ (read-text-raster width height #t in (image-pixel-setter ppm-image)
unexpected-eof-error
unexpected-character-error)
ppm-image))
@@ -99,7 +99,7 @@
(read-bytevector (* 2 width height) in))))
((P2)
(let ((pgm-image (make-pgm-image width height maxval)))
- (read-text-raster width height #f in (image-pixel-writer pgm-image)
+ (read-text-raster width height #f in (image-pixel-setter pgm-image)
unexpected-eof-error
unexpected-character-error)
pgm-image))))))))))