Friday, April 22, 2005

Happy Friday

Let me start this post by revealing that Adelphia sucks. Of course, those who are subject to the grip of Adelphia are already aware of this. At least we are back online -- better late than never.

Unfortunately nothing very "bloggable" happened today. Also, last night's post did not gather much reader attention by way of comments. So, I have nothing to talk back about.

One annoying thing: Its very difficult to find documentation about the bitmap file format. After an hour of google, I finally happened on an interesting reference. We'll have to see tomorrow morning whether the information found there was accurate. I will post my created bitmaps as soon as I figure out the format. Don't worry, dear readers, nothing dirty will be in those bitmaps!

Look forward to seeing everyone on Friday. The last colloquium means only one more chance to double-fist the coffee. Are you ready?

1 comment:

Anonymous said...

#!/bin/env python

# Ref: http://www.pythonware.com/library/pil/handbook/
# output: http://www.cs.virginia.edu/~dww4s/test.png

import PIL
from PIL import Image

im = Image.new("RGB", (256,256))

for x in range(256):
    for y in range(256):
        # position, RGBA
        im.putpixel((x,y), (x, y, 0, 0))

im.save("test.png", "PNG")

#10 minutes of work, assuming PIL is installed