[self-interest] How do I retreive a picture from an URL

tb at tcltalk.ath.cx tb at tcltalk.ath.cx
Wed Mar 2 15:16:05 UTC 2011


Chris Double schrieb:
...

> 
> I have a screencast here going through some of this:
> 
> http://www.bluishcoder.co.nz/2009/07/27/displaying-images-with-self.html
> 
Thanx a lot.

I think I hacked it. ;)

[code]

| uri = 'http://www.cs.ucsb.edu/~urs/oocsb/self/release/smalltalk,gif' |

(webBrowser webImageMorph copy sourceURL: uri asURL)
    buildImage.

[/code]

Getting the above outliner and using it's 'Show morph' menu option shows
the smalltalk.gif web image on screen. :) - How do I script it to show
up on screen?

BTW: What would be the best way for resizing a ui2Image? Should I invoke
'convert' from ImageMagick? Though, it wouldn't be portable that way.

Thomas



More information about the Self-interest mailing list