logo       

Re: printing graphics in squeak: msg#00093

lang.smalltalk.squeak.beginners

Subject: Re: printing graphics in squeak

Hi Michael,

Thanks for the info. Squeak can be intimidating with its wealth of capabilities if you don't know where to look. I will sure be busy checking out your suggestions.

Ching

On 9/18/07, Michael van der Gulik <mikevdg@xxxxxxxxx> wrote:
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.

Ching


On 9/18/07, David Mitchell <david.mitchell@xxxxxxxxx> wrote:
Do you mean charts and graphs? If so, check out PlotMorph.

http://wiki.squeak.org/squeak/2626

On 9/17/07, Ching de la Serna < ching.dls@xxxxxxxxx> wrote:
> Hi,
>
> I would like to print graphics in Squeak. What classes do I need to do this?
> Many thanks in advance.
>
> Ching
>
> _______________________________________________
> Beginners mailing list
> Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners



_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise