PR 10728
svn: r18136
This commit is contained in:
parent
8f7e5b3803
commit
12dc4f3421
|
@ -124,12 +124,19 @@
|
||||||
'non-negative-real-number
|
'non-negative-real-number
|
||||||
i arg)
|
i arg)
|
||||||
arg]
|
arg]
|
||||||
[(dx dy x1 y1 x2 y2 factor x-factor y-factor pull1 pull2)
|
[(dx dy x1 y1 x2 y2 pull1 pull2)
|
||||||
(check-arg fn-name
|
(check-arg fn-name
|
||||||
(real? arg)
|
(real? arg)
|
||||||
'real\ number
|
'real\ number
|
||||||
i arg)
|
i arg)
|
||||||
arg]
|
arg]
|
||||||
|
[(factor x-factor y-factor)
|
||||||
|
(check-arg fn-name
|
||||||
|
(and (real? arg)
|
||||||
|
(positive? arg))
|
||||||
|
'positive\ real\ number
|
||||||
|
i arg)
|
||||||
|
arg]
|
||||||
[(side-count)
|
[(side-count)
|
||||||
(check-arg fn-name
|
(check-arg fn-name
|
||||||
(side-count? arg)
|
(side-count? arg)
|
||||||
|
|
|
@ -1512,10 +1512,11 @@
|
||||||
(underlay image image)
|
(underlay image image)
|
||||||
(underlay/xy image coord coord image)
|
(underlay/xy image coord coord image)
|
||||||
(crop coord coord size size image)
|
(crop coord coord size size image)
|
||||||
(scale/xy size size image)
|
(scale/xy factor factor image)
|
||||||
(scale size image)
|
(scale factor image)
|
||||||
(rotate angle image))
|
(rotate angle image))
|
||||||
|
|
||||||
|
(factor (+ 1 big-nat) 1/2 1/3 1/4) ;; scaling factors
|
||||||
(size big-nat)
|
(size big-nat)
|
||||||
(mode 'outline 'solid "outline" "solid")
|
(mode 'outline 'solid "outline" "solid")
|
||||||
(color "red" 'red "blue" "orange" "green" "black")
|
(color "red" 'red "blue" "orange" "green" "black")
|
||||||
|
|
|
@ -768,7 +768,7 @@ the parts that fit onto @scheme[scene].
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[(scale [factor real?] [image image?]) image?]{
|
@defproc[(scale [factor (and/c real? positive?)] [image image?]) image?]{
|
||||||
|
|
||||||
Scales @scheme[image] by @scheme[factor].
|
Scales @scheme[image] by @scheme[factor].
|
||||||
|
|
||||||
|
@ -788,7 +788,7 @@ the parts that fit onto @scheme[scene].
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@defproc[(scale/xy [x-factor real?] [y-factor real?] [image image?]) image?]{
|
@defproc[(scale/xy [x-factor (and/c real? positive?)] [y-factor (and/c real? positive?)] [image image?]) image?]{
|
||||||
Scales @scheme[image] by @scheme[x-factor] horizontally and by
|
Scales @scheme[image] by @scheme[x-factor] horizontally and by
|
||||||
@scheme[y-factor] vertically.
|
@scheme[y-factor] vertically.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user