Friday, December 22, 2006

What is wrong with computer scientists?


Why can't it be as simple as this?




Squirk said...

You must be new here.


Bob said...

Last time I used Java it didn't seem that hard. Perhaps I'm too used to the Python library (though that could do with a rework to be really nice).

Don't even get me started on how hard the Independant JPEG group API was to link up to...

Anonymous said...

I fully agree, the Java Image classes are way too complex to use.

What I usually do is to create a BufferedImage, IIRC it has a setRGB() method that can be used to set a single pixel or a number of pixels.

Bob said...

Hi Anonymous!

Yeah I'd do that if it was a single image... unfortunately in this case it was a MJPEG (motion JPEG) stream on relatively slow iMac so we needed a fast decoder. Much easier in Python :)