Merging profiles into colorspaces
Casper Boemann
cbr at boemann.dk
Sat Sep 17 16:49:33 CEST 2005
Hi
I've been thinking about our colorspace design.
Currently we have profiles and colorspaces, they are matched up in the paint
device. But actually a profile is a specialisation of a colormodel.
What we currently call colorspace is actually a colormodel.
A colorspace is a colormodel plus a profile.
Our code should reflect that.
I still want colorspaces to be singletons. Or rather "multipletons" if that is
a word. That is, only one instance of each colormodel+profile. So a
constructor something like KisColorSpace(KisProfile) and the factory like
getInstance(KisID)
If the colorspace with the same KisID already exists then we don't create it
again.
It would be much easier to use.
I can see lots of advantages, but can any of you see any problems.
I would be willing to do the coding
--
best regards / venlig hilsen
Casper Boemann
More information about the kimageshop
mailing list