Have a look at the Smalltalk scripts of the Jenkins builder. There are various examples that do exactly that (Seaside, Pier, Pharo, PetitParser, ...). Some use the #storeString of Form instances, others use ByteArrays, but the simplest is if you just load the image from a webserver. Lukas On Saturday, 6 August 2011, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
Hi guys. I want to do two things:
1) set a custom logo and background for my images. 2) I want to do 1) from my ConfigurationOfMariano 3) I want to have the logo and background picture as a ByteArray/Bitmap or whatever but inside the image (not needing an external file).
For 1) I know I can do for the background image:
World backgroundImage: (ImageReadWriter formFromFileNamed: 'whatever.png') layout: #scaled.
And for the logo:
LogoImageMorph default: (ImageMorph withForm: (ImageReadWriter formFromFileNamed: 'whatever'))
Now....I need the second part, how to read it from file and store it as an image directly in the image. Something similar as icons are stored. And of course, then how to read them and set it to the background and logo.
Thanks in advance,
-- Mariano http://marianopeck.wordpress.com
-- Lukas Renggli www.lukas-renggli.ch