[Squeakland] drawing on images
milan.zimmermann at sympatico.ca
Mon Dec 27 17:11:15 PST 2004
On December 25, 2004 10:03 pm, Scott Wallace wrote:
> The copy of my memo below that reached me via Squeakland had for some
> reason had its inline graphic stripped, rendering the final paragraph
> rather inscrutable...
Scott, FWIW, the attached graphics seemed to reach my mailbox and was readable
in my email client (KMail) before as well.
> Here's another attempt to send the graphic that was supposed to
> follow the final paragraph:
> ... and if that again fails to make it way through, here in text is
> the sense of what the phrase in the script said:
> Playfield's graphic <- myPicture's graphic
> -- Scott
> At 4:23 AM -0800 12/23/04, Scott Wallace wrote:
> >Hi, Randy,
> >Only PasteUpMorphs (a.k.a. Playfields) are equipped to accommodate
> >pen trails. So the way to get pen trails drawn on an imported
> >graphic is to make the imported graphic be the "background" of a
> >This is easy enough to do in a variety of ways but there is no
> >one-step command to do it -- though probably there should be.
> >Here's one way: Get a fresh playfield from Supplies; from its debug
> >halo handle choose "inspect morph"; in the bottom pane of the
> >resulting Inspector type and then evaluate an expression like:
> > self backgroundForm: (Form fromFileNamed: 'myGraphic.jpeg')
> >where you have substituted the correct file name.
> >If you have a graphic previously "imported" into Squeak, with name
> >"myGraphic", you could instead use something like:
> > self backgroundForm: (Imports default imports at: 'myGraphic')
> >Another slightly more tedious way that doesn't involve evaluating
> >any smalltalk expressions is to "open" the graphic from a file-list
> >(into a Sketch which you rename, say, "myPicture,") and then build
> >an etoy script for the playfield of the following form, and run it
> > -- Scott
> >At 7:26 PM -0500 12/20/04, Randy Heiland wrote:
> >>Is there any way to have my (pen down) objects draw over the top of
> >> imported images?
More information about the Squeakland