(bitmap-implode list cols rows)
A list of bitmaps is “imploded” resulting in a new bitmap with specified dimensions.
The resulting bitmap is returned.
(define (bitmap-implode list cols rows)
(let ((ziel (bitmap-create cols rows)))
(for-each (lambda (x) (bitmap-implant! x ziel)) list)
ziel))
> (define a (bitmap-readpng "bitmap.ipng"))
a
> (define b (bitmap-explode a))
b
> (define c (bitmap-implode b (bitmap-width a) (bitmap-height a)))
c
> (bitmap-equal? a c)
#t
>