Fix type for read-bitmap
Closes PR 14729
This commit is contained in:
parent
10d957be1e
commit
e50e2eaa57
|
@ -54,6 +54,9 @@
|
||||||
Radial-Gradient%
|
Radial-Gradient%
|
||||||
Region%))
|
Region%))
|
||||||
|
|
||||||
|
(begin-for-syntax
|
||||||
|
(define -LoadFileKind (parse-type #'LoadFileKind)))
|
||||||
|
|
||||||
(type-environment
|
(type-environment
|
||||||
[the-brush-list (make-Instance (parse-type #'Brush-List%))]
|
[the-brush-list (make-Instance (parse-type #'Brush-List%))]
|
||||||
[the-pen-list (make-Instance (parse-type #'Pen-List%))]
|
[the-pen-list (make-Instance (parse-type #'Pen-List%))]
|
||||||
|
@ -62,8 +65,11 @@
|
||||||
(->optkey -PosInt -PosInt [Univ] #:backing-scale -Real #f
|
(->optkey -PosInt -PosInt [Univ] #:backing-scale -Real #f
|
||||||
(make-Instance (parse-type #'Bitmap%)))]
|
(make-Instance (parse-type #'Bitmap%)))]
|
||||||
[read-bitmap
|
[read-bitmap
|
||||||
(->opt (Un -Pathlike) [-Symbol (Un (make-Instance (parse-type #'Color%)) (-val #f)) Univ]
|
(->optkey (Un -Pathlike -Input-Port)
|
||||||
(make-Instance (parse-type #'Bitmap%)))]
|
[-LoadFileKind (Un (make-Instance (parse-type #'Color%)) (-val #f)) Univ]
|
||||||
|
#:backing-scale -Real #f
|
||||||
|
#:try-@2x? Univ #f
|
||||||
|
(make-Instance (parse-type #'Bitmap%)))]
|
||||||
[make-color
|
[make-color
|
||||||
(->optkey -Byte -Byte -Byte
|
(->optkey -Byte -Byte -Byte
|
||||||
[-Real]
|
[-Real]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user