=== Top of the Swiki === Attachments ===

Screen Dump To Gif

GIFReadWriter putForm: Display onFileNamed: 'screenshot.GIF'

You need the fixes from Hans Martin Mosner to get the GIFReadWriter to work in 1.23 or earlier.

Purpose: The GIFReadWriter class can encode and decode GIF images to Squeak's internal Form format. putForm:onFileNamed: takes a Form and encodes a GIF from it.

Why This is Interesting: The whole Display is just a Form, actually, it's a DisplayScreen, which is a subclass of Form. You can send the whole thing to GIF, or just a window, or something cool that you draw.


In 2.7 there is:

Utilities grabScreenAndSaveOnDisk