Comp 210 Lab 13: Images in Dr. Scheme

You have seen some of Dr. Scheme's types: symbols, integers, lists...and now, pictures! Yes, pictures can be used just like any other type. In the definition window, type (define hi , and then (before closing the parenthesis), select "Insert Image..." from the Edit menu. It brings up an open-file dialogue. Go to the directory ~comp210/Gifs/, and choose any file inside which ends in .gif. (This stands for ... graphical image format??) Choose an image, click "ok", and close off the final paren.

You can now use hi however you please! Is it equal to 'pretty? While gifs don't work well with printf, you can use display instead.

WARNING: when you save a file containing gif values, don't expect it to be readable or printable any more!


Back to Lab 13
Back to Comp 210 Home