Color Spaces - RGB, CMYK, YUV

Grzegorz Borowiak grzes at gnu.univ.gda.pl
Sat Jun 4 16:20:25 CEST 2005


On Sat, 4 Jun 2005, Boudewijn Rempt wrote:

> > I also wonder of reimplementing KisPixel. Instead of having fields
> > m_channels, m_alpha and m_colorStrategy, it should contain a KisColor
> > field, or be derived from KisColor, or both should be derived from common
> > base.
>
> No, that wouldn't work. You see, we use KisPixel as a high-level view on
> actual image data. Check the kis_iteratorpixeltrait.h file (maybe differently
> spelled...)

OK, I retreat from this idea. Instead, it's better to derive KisColor from
KisPixel, although it's a little bit ugly - the color is a property of the
pixel, not otherwise.

-- 
Grzes


More information about the kimageshop mailing list