I'm working with some imaging stuff. I have an array of bytes, but each bit represents a pixel as this is a monochrome image.
The buffer into which I need to copy is for a CMYK image. It expects 32 bits/pixel.
I think I need to turn each 0 bit into 0x00000000 and each 1 bit into 0x FFFFFFFF.
I could run a loop that did bitwise math. But is there an EFFICIENT way of doing this?