KisColor
Casper Boemann
cbr at boemann.dk
Mon Jun 6 22:03:08 CEST 2005
On Monday 06 June 2005 18:11, Boudewijn Rempt wrote:
> Casper -- I think I'm getting confused about what you mean, and what I
> mean, so I have made a quick mockup of what I think you meant -- and given
> this mockup I don't see the added value above adding a toXYZ and fromXYZ
> method to KisStrategyColorSpace, but no doubt you can enlighten me:
well, we are talking past each other.
I'm talking in favour of toXYZ and fromXYZ in the colorspaces
in my mind KisColor should be something like:
class KisColor
{
public:
// Create a KisColor using a native color strategy. The data is copied.
KisColor(Q_UINT8 * data, KisStrategyColorSpaceSP colorStrategy = 0,
KisProfileSP profile = 0);
// Create a KisColor by converting src into another colorspace
KisColor(KisColor &src, KisStrategyColorSpaceSP colorStrategy = 0,
KisProfileSP profile = 0);
virtual ~KisColor();
private:
Q_UINT8 * m_data;
KisStrategyColorSpaceSP m_colorStrategy;
KisProfileSP m_profile;
};
--
best regards / venlig hilsen
Casper Boemann
More information about the kimageshop
mailing list