[plt-scheme] Inserting an image programmatically

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sat Nov 1 01:49:40 EDT 2008

(make-object image-snip% ...)

Chongkai


Mark Engelberg wrote:
> 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
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>   



Posted on the users mailing list.