Re: [Pharo-project] OBMorphicIcons (was Re: this style looks cool)
Thanks both of you for pointing me in the right direction. I was able to get something similar to what is in OBMorphicIcons>>breakpoint by doing this: methodContents := WriteStream on: ''. (OBMorphicIcons iconNamed: #breakpoint) storeOn: methodContents. methodContents inspect. But the contents are different, and if you substitute them for the contents of breakpoint, the picture looks different too... Thank you, Rob
*contents := (StandardFileStream fileNamed: 'loop_icon.jpg') contents. encondedContents := (Base64MimeConverter mimeEncode: contents readStream) .*
That basically gives you the string you have to embed in a method...
Cheers, Guille
On Mon, Aug 30, 2010 at 9:42 AM, Alexandre Bergel <alexandre@bergel.eu
wrote:
This looks useful; how do you turn an image into a method, though?
Hi!
Have a look at the class side of MenuIcons. There are a bunch of import/export methods.
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
participants (1)
-
Rob Rothwell