On 19/10/10 4:13 PM, Max Leske wrote:
The script used to be bash but some people had problems with it on other
systems so Lukas rewrote it.
Here's one more way using "vi" (which apparently has a binary mode).
Save the attached vi commands in a file, and run it using:
vi -b your.image < poke-image.vi
It sets the image size to 512x768. If you want another size, you'll have
to do the conversion to hex.
This method can be useful if the "bash" method won't work, and you don't
have a C compiler on your machine.
:%!xxd
2G6wr0 r0 r0 r2 r0 r0 r0 r3
:%!xxd -r
:w
:q
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project