12bit will be pretty awful to work with though. That will mean 36 bits per pixel, which doesn&#x27;t fit into a whole number of 8-bit-bytes. Best to just bite the bullet and go 16bit for internal representation.