argument.
#| -*-Scheme-*-
-$Id: graphics.scm,v 1.14 1995/02/21 23:10:35 cph Exp $
+$Id: graphics.scm,v 1.15 1995/02/21 23:20:21 cph Exp $
Copyright (c) 1989-95 Massachusetts Institute of Technology
(and error?
(error "Graphics type has no associated image type:"
type))))))))
-
+\f
(define (make-image-type operations)
(let ((operations
(map (lambda (entry)
(define the-destroyed-image-type #f)
-(define (image/create type device width height)
+(define (image/create device width height)
;; operation/create returns a descriptor
- (%make-image type
- ((image-type/operation/create type) device width height)))
+ (let ((type (image-type device)))
+ (%make-image type
+ ((image-type/operation/create type) device width height))))
(define (image/destroy image)
((image-type/operation/destroy (image/type image)) image)
#| -*-Scheme-*-
-$Id: os2graph.scm,v 1.6 1995/02/21 23:15:58 cph Exp $
+$Id: os2graph.scm,v 1.7 1995/02/21 23:20:02 cph Exp $
Copyright (c) 1995 Massachusetts Institute of Technology
(y (window/y->device window y-bottom)))
(let ((width (+ (- (window/x->device window x-right) x) 1))
(height (+ (- (window/y->device window y-top) y) 1)))
- (let ((image (image/create (image-type device) device width height)))
+ (let ((image (image/create device width height)))
(os2ps-bitblt (image/ps (image/descriptor image))
(window/backing-store window)
(vector x (+ x width) 0)
#| -*-Scheme-*-
-$Id: x11graph.scm,v 1.41 1995/02/21 23:11:22 cph Exp $
+$Id: x11graph.scm,v 1.42 1995/02/21 23:20:11 cph Exp $
Copyright (c) 1989-95 Massachusetts Institute of Technology
;; Abstraction layer for generic images
(define (x-graphics/create-image device width height)
- (image/create (image-type device) device width height))
+ (image/create device width height))
;;(define x-graphics-image/create create-x-image)