|
Re: printing graphics in squeak: msg#00092lang.smalltalk.squeak.beginners
Hi Ching. Morphs draw themselves on Canvases - look at the Canvas class. Typically, these would be FormCanvas which draws to the screen. I think there is a Postscript-capable Canvas subclass. I'm not sure what it's called ("PostscriptCanvas"?). Google for Ghostscript for info on how to print postscript files if you don't have a postscript-capable printer (or if you aren't running Linux). Also try reverse-engineering the print command in the... menus? This will be a good exercise for you. Find the "print" command in a menu somewhere in squeak (probably in a halo menu for a Morph?), and open the halo on the menu itself, select "explore" or "inspect" and poke around to see if you can find where the code for the print command is. Sorry I can't give you specifics; I don't have squeak available right now. Michael. On 9/18/07, Ching de la Serna <
ching.dls@xxxxxxxxx> wrote: Thanks David, I think I need to look at Morphs a little more closely for what I need to do which is to create some graphics (shapes, etc.) and send them to a printer. _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: printing graphics in squeak, Ching de la Serna |
|---|---|
| Next by Date: | Re: printing graphics in squeak, Ching de la Serna |
| Previous by Thread: | Re: printing graphics in squeak, Ching de la Serna |
| Next by Thread: | Re: printing graphics in squeak, Ching de la Serna |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |