Merging profiles into colorspaces
cbr at boemann.dk
Sat Sep 17 16:49:33 CEST 2005
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
If the colorspace with the same KisID already exists then we don't create it
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
More information about the kimageshop