[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/pigment
From: Cyrille Berger <cyb () lepi ! org>
Date: 2010-01-16 10:07:22
Message-ID: 1263636442.505721.32212.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1075493 by berger:
add two new functions for accessing colorspaces using their color/depth
models ids
M +9 -0 KoColorSpaceRegistry.cpp
M +15 -0 KoColorSpaceRegistry.h
--- trunk/koffice/libs/pigment/KoColorSpaceRegistry.cpp #1075492:1075493
@@ -174,7 +174,16 @@
return colorSpace(csID.id(), profileName);
}
+const KoColorSpace * KoColorSpaceRegistry::colorSpace(const QString & colorModelId, \
const QString & colorDepthId, const KoColorProfile *profile) +{
+ return colorSpace(colorSpaceId(colorModelId, colorDepthId), profile);
+}
+const KoColorSpace * KoColorSpaceRegistry::colorSpace(const QString & colorModelId, \
const QString & colorDepthId, const QString &profileName) +{
+ return colorSpace(colorSpaceId(colorModelId, colorDepthId), profileName);
+}
+
QList<const KoColorProfile *> KoColorSpaceRegistry::profilesFor(const \
KoColorSpaceFactory * csf) {
QList<const KoColorProfile *> profiles;
--- trunk/koffice/libs/pigment/KoColorSpaceRegistry.h #1075492:1075493
@@ -162,6 +162,21 @@
const KoColorSpace * colorSpace(const QString &colorSpaceId, const QString \
&profileName);
/**
+ * Return a colorspace that works with the parameter profile.
+ * @param colorSpaceId the ID string of the colorspace that you want to have \
returned + * @param profile the profile be combined with the colorspace
+ * @return the wanted colorspace, or 0 when the cs and profile can not be \
combined. + */
+ const KoColorSpace * colorSpace(const QString & colorModelId, const QString & \
colorDepthId, const KoColorProfile *profile); +
+ /**
+ * Return a colorspace that works with the parameter profile.
+ * @param profileName the name of the KoColorProfile to be combined with the \
colorspace + * @return the wanted colorspace, or 0 when the cs and profile can \
not be combined. + */
+ const KoColorSpace * colorSpace(const QString & colorModelId, const QString & \
colorDepthId, const QString &profileName); +
+ /**
* Return the id of the colorspace that have the defined colorModelId with \
colorDepthId.
* @param colorModelId id of the color model
* @param colorDepthId id of the color depth
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic