The manifold meanings of 'depth'

Casper Boemann cbr at boemann.dk
Wed Feb 2 15:41:33 CET 2005


On Wednesday 02 February 2005 15:29, Boudewijn Rempt wrote:
> We're currently using the word 'depth' for:
>
> * The size of a pixel in bytes
> * The number of channels in a pixel
> * The number of colour channels in a pixel.
>
> I want to reserve 'size' for the first meaning, 'depth' for the second, and
> 'nColorChannels' for the third. In some places I've already made this
> consistent, and I'm working to do the same in the rest of Krita.
>
> And I intend to make the colour strategy leading in this respect.

except depth is commonly used to be the pixelsize in bits or bytes

So how about forgoing the word depth alltogether:

pixelSize is the size in bytes
nChannels is the number of channels
nColorChannels is the number of colorchannels

best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list