Re: 1-Bit Bitmap

2010-06-01 Thread Thomas Stover
..."Any library that you can think of that offers bit by bit access without me needing to write a separate function to shift the bits out one by one from a 32-Bit int? Kind of like a bitarray?" Are you using something other than C? -- www.thomasstover.com _

Re: 1-Bit Bitmap

2010-06-01 Thread James Morris
I recently wrote a window-placement-like algorithm for a 128x128 grid using bit manipulation. You might find some of the code useful for writing your own library code to do what you require. It does not have any functions to set individual bits in the array, but it does have a function to unset are

Re: 1-Bit Bitmap

2010-05-31 Thread Asad Jibran Ahmed
On Mon, 2010-05-31 at 20:59 +0200, Tadej Borovšak wrote: > Hello. > > > I'm looking to create an application that requires using 1-bit bitmaps > > to store a monochrome printing pattern. But I've looked at both Pixmaps > > and Pixbufs, but Pixbufs doesn't offer direct access to the bits (I need >

Re: 1-Bit Bitmap

2010-05-31 Thread Tadej Borovšak
Hello. > I'm looking to create an application that requires using 1-bit bitmaps > to store a monochrome printing pattern. But I've looked at both Pixmaps > and Pixbufs, but Pixbufs doesn't offer direct access to the bits (I need > to set and read them) and Pixmaps doesn't support 1-Bit pixels (at

1-Bit Bitmap

2010-05-31 Thread Asad Jibran Ahmed
I'm looking to create an application that requires using 1-bit bitmaps to store a monochrome printing pattern. But I've looked at both Pixmaps and Pixbufs, but Pixbufs doesn't offer direct access to the bits (I need to set and read them) and Pixmaps doesn't support 1-Bit pixels (at least that's wha