diff options
Diffstat (limited to 'pnm/write.scm')
-rw-r--r-- | pnm/write.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pnm/write.scm b/pnm/write.scm index c85fec5..849e3de 100644 --- a/pnm/write.scm +++ b/pnm/write.scm @@ -82,19 +82,19 @@ ((ppm) (write-raster (lambda (x y) - (let-values (((r g b) (image-pixel-read image x y))) + (let-values (((r g b) (image-ref image x y))) (write-token (number->string r)) (write-token (number->string g)) (write-token (number->string b)))))) ((pgm) (write-raster (lambda (x y) - (let ((v (image-pixel-read image x y))) + (let ((v (image-ref image x y))) (write-token (number->string v)))))) ((pbm) (write-raster (lambda (x y) - (let ((b (image-pixel-read image x y))) + (let ((b (image-ref image x y))) (write-token (if b "1" "0")))))))))) (define (write-string-u8 str out) |