Design ideas about iterators
Boudewijn Rempt
boud at valdyas.org
Wed Mar 3 12:59:35 CET 2004
On Wednesday 03 March 2004 12:47, Patrick Julien wrote:
> > > To store 16 bits use two quantum...
> > > One RGBA pixel four (or eight) quantum.
> >
> > hum, yes but if we use two quantum to do a quantum16, we will have to
> > write a brand new colorstrategy, but if we use template, we can share
> > some code between colors strategy.
>
> That is an incorrect assumption. What you need is for the channel depth to
> be a property of the paint device instead of a compile time option.
>
Shouldn't channel depth be a property of the image type -- and the image type
a property of the channel depth? (On a related note -- I really want to make
Krita flexible enough that it is possible to have layers of different image
types in the same image.)
--
Boudewijn Rempt | http://www.valdyas.org/fading/index.cgi
More information about the kimageshop
mailing list