6.2.901.900
3 Pict Utilities
NOTE: This library is deprecated; use pict, instead. The contents of this module, with the exceptions below, have been merged with
the pict collection, or its subcollections.
The functions and macros exported by this module are also exported by
unstable/gui/slideshow.
3.1 Pict Colors
Applies color
c to picture
p. Equivalent to
(colorize p c).
3.2 Pict Manipulation
Extends pict’s bounding box to a minimum width and/or
height, placing the original picture in the middle of the space.
Scales pict so that its width and height are at most
width and height, respectively. If mode is
'preserve, the width and height are scaled by the same factor
so pict’s aspect ratio is preserved; the result’s bounding
box may be smaller than width by height. If
mode is 'inset, the aspect ratio is preserved as
with 'preserve, but the resulting pict is centered in a
bounding box of exactly width by height. If
mode is 'distort, the width and height are scaled
separately.
3.2.1 Conditional Manipulations
These pict transformers all take boolean arguments that determine whether to
transform the pict or leave it unchanged. These transformations can be useful
for staged slides, as the resulting pict always has the same size and shape, and
its contents always appear at the same position, but changing the boolean
argument between slides can control when the transformation occurs.
Displays a strikethrough image by putting a line through the middle of
pict if strike? is true; produces pict unchanged
otherwise.
Shades pict to show with ratio of its normal opacity; if
ratio is 1 or shade? is #f, shows
pict unchanged.
3.2.2 Conditional Combinations
These bindings provide additional control over the combinations in
pict/conditional.
Sets
pict-combine to refer to
combine-id within each of the
body terms, which are spliced into the containing context.
(pict-match test-expr maybe-combine [pattern pict-expr] ...)
|
| |
| maybe-combine | | = | | | | | | | | | #:combine combine-expr |
|
Chooses a
pict-expr based on
test-expr and each
pattern, similarly to
match. Combines the chosen, visible
image with the other, invisible images using
combine-expr, defaulting
to
lbl-superimpose.
3.3 Shapes with Borders
The subsequent bindings were added by Vincent St-Amour.
These functions create shapes with border of the given color and width.
3.4 Lines with Labels
The subsequent bindings were added by Scott Owens.
3.5 Blur
The subsequent bindings were added by Ryan Culpepper.
Blurs bitmap using blur radii h-radius and
v-radius.
3.6 Shadow Frames
Creates an arch.
3.7 Drawing
The subsequent bindings were added by Jay McCarthy.
Draws the pict p on dc centered in a wxh rectangle.
3.8 Additional combinators
The subsequent bindings were added by Asumu Takikawa.
Adds a background highlighted with color to
pict.
|
| pict : pict? |
| width : real? = 1 |
| | style | | : | | | (or/c 'transparent 'solid 'xor | | 'hilite 'dot 'long-dash 'short-dash | | 'dot-dash 'xor-dot 'xor-long-dash | | 'xor-short-dash 'xor-dot-dash) |
| | = | | 'solid |
|
| color : color/c = "black" |
Crosses out pict with two diagonal lines drawn with
the given line width and with the line style.
The lines are colored with color.
3.9 PLT Logos
The subsequent bindings were added by Jay McCarthy.
Draws the PLT logo inside a wxh rectangle.