High-level pixel access methods

Patrick Julien freak at codepimps.org
Sun Feb 15 13:20:21 CET 2004


On February 15, 2004 07:18 am, Boudewijn Rempt wrote:
> On Sunday 15 February 2004 13:02, Patrick Julien wrote:
> > It doesn't mean that fillRect uses all of them, it still uses the depth
> > of the image.
>
> Doesn't it allocate memory for that many bytes?

Yes, but only for one, the current pixel.  The rest is still coming for the 
image

>
> > MAX_CHANNELS means: This is the maximum number of channels an image
> > sample can have.  So MAX_CHANNELS might be 10, 100 or whatever, but if
> > fillRect is working on a RGB image, it's still only going to use 3
> > channels.
>
> If it doesn't have an adverse effect on memory usage, I'd like to bump it
> up to, say 255, to have a bit of room to play with.

Why?



More information about the kimageshop mailing list