8.12.0.9
5 Pict Finders
annotation |
Satisfied by a finder, which is applied to a pict to obtain
two numbers representing an x-offset and y-offset.
function | |||||||
|
Creates a finder that locates a pict within another
pict. The Find.in method takes the pict that contains
pict and returns two numbers, the x-offset and y-offset.
The horiz and vert arguments determine the position within pict that is fount. For example, the combination #'right and #'bottom find the bottom-right corner of pict’s bounding box within another pict.
The dx and dy offsets are added to an x-offset and y-offset that would be returned otherwise.
Creates a finder that always returns dx and
dy without needing to locate any particular component
pict.
Applies finder to pict. An exception is thrown is a
needed component pict cannot be found in pict.
If pict is an animated picture, then the search corresponds to finding within Pict.snapshot(pict). When a finder for an animated pict is provdied to a function like pin, however, pin will produce an animated pict where the finder is used separately for each snapshot generated from the combined animated pict.