Saturday, January 31, 2009

ZBitmap & FreeType Binding

Copperbox revision 443.

I've deleted the ZBmp1 directory - this had a prototype of ZBitmap that handled mono bitmaps. As ZBitmap does mono bitmaps, ZBmp1 is redundant.

Also, I've made minor changes to Example1 in the Haskell FreeType binding.

Friday, January 30, 2009

ZBitmap

Copperbox revision 442.

I've tidied up the Convert module and added support for 4- and 8-bit bmp bitmaps.

ZBitmap

Copperbox revision 441.

Tidying up the Convert module, though it still needs work to implement other resolutions than mono and 24bit.

ZBitmap

Copperbox revision 440.

Some tidying up. The Convert module still needs more tidying, though.

Thursday, January 29, 2009

ZBitmap

Copperbox revision 439.

Fixed the striping bug when going from a *.bmp bitmap to the internal bitmap and back to the *.bmp bitmap.

Now that I've got ZBitmap working I'm starting to see how it should work anyway (I'd never really programmed bitmap graphics before, so I was somewhat in the dark to start with). The next round of work will be to start tidying up some of the code horrors.

ZBitmap

Copperbox revision 438.

Work on rendering the internal bitmap representation back to a DIB bmp bitmap.

This has some problems - mainly because I don't seem to be translating the initial input bmp bitmap properly in the first place.

ZBitmap

Copperbox revision 437.

Initial work on converting bitmap colour depths. The internal bitmap format in ZBitmap stores a pixel as a 32 bit value - the new code can translate mono Bmp bitmaps to the internal format (though it currently ignores the palette value and blindly sets things pixels to black or white).

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.