[plt-scheme] Inserting an image programmatically

From: Mark Engelberg (mark.engelberg at gmail.com)
Date: Sat Nov 1 00:21:41 EDT 2008

I'd like to write a function that displays in the interactions window
(or pops it up in a separate window) a file-based image.

My first try was this:
(require scheme/gui)
(make-object bitmap% "C:\\temp\\soccerball.gif")

but this just prints #<bitmap%> in the interactions window.

How do I get this to display, just like an image inserted using the
Insert Image menu item?

Thanks,

Mark


Posted on the users mailing list.