add a contract to colorize
This commit is contained in:
parent
ae298ae353
commit
19e7b89886
|
@ -7,8 +7,15 @@
|
||||||
(except-out (all-from-out "private/main.rkt")
|
(except-out (all-from-out "private/main.rkt")
|
||||||
pict->bitmap
|
pict->bitmap
|
||||||
pict->argb-pixels
|
pict->argb-pixels
|
||||||
argb-pixels->pict)
|
argb-pixels->pict
|
||||||
|
colorize)
|
||||||
(contract-out
|
(contract-out
|
||||||
|
[colorize (-> pict?
|
||||||
|
(or/c string?
|
||||||
|
(is-a?/c color%)
|
||||||
|
(list/c byte? byte? byte?))
|
||||||
|
pict?)]
|
||||||
|
|
||||||
[pict->bitmap (->* (pict?)
|
[pict->bitmap (->* (pict?)
|
||||||
((or/c 'unsmoothed 'smoothed 'aligned))
|
((or/c 'unsmoothed 'smoothed 'aligned))
|
||||||
(is-a?/c bitmap%))]
|
(is-a?/c bitmap%))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user