6 Miscellaneous Operations
Returns the size of str as drawn into viewport
as a
list of two numbers: width and height.
procedure
(viewport->snip viewport) → (is-a?/c snip%)
viewport : viewport?
Returns an object that can be inserted into an editor buffer to display the current image in the viewport. (Subsequent drawing to the viewport does not affect the snip’s image.)
When snips are the results of computations in the interactions window, DrRacket shows the snip in the interactions window.}
procedure
(viewport-dc viewport) → (is-a?/c dc<%>)
viewport : viewport?
Returns an object for direct drawing into viewport’s
on-screen representation (if any). Mirror all such drawing to the
result of (viewport-buffer-dc viewport), too.
procedure
(viewport-buffer-dc viewport) → (is-a?/c dc<%>)
viewport : viewport?
Returns an object for direct drawing into viewport’s
off-screen representation. Mirror all such drawing to the
result of (viewport-dc viewport), too.