[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/pigment/colorspaces
From: Emanuele Tamponi <emanuele () valinor ! it>
Date: 2008-03-24 19:51:01
Message-ID: 1206388261.890466.10584.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 789645 by tamponi:
Small fixes.
M +6 -6 KoRgbU16ColorSpace.cpp
M +2 -2 KoRgbU8ColorSpace.cc
--- trunk/koffice/libs/pigment/colorspaces/KoRgbU16ColorSpace.cpp #789644:789645
@@ -29,18 +29,18 @@
KoRgbU16ColorSpace::KoRgbU16ColorSpace( KoColorProfile *p) :
KoLcmsColorSpace<KoRgbU16Traits>(colorSpaceId(), i18n("RGB 16-bit \
integer/channel)"), TYPE_BGRA_16, icSigRgbData, p) {
- addChannel(new KoChannelInfo(i18n("Red"), 2* sizeof(quint16), \
KoChannelInfo::COLOR, KoChannelInfo::UINT16, 4, QColor(255,0,0)));
- addChannel(new KoChannelInfo(i18n("Green"), 1* sizeof(quint16), \
KoChannelInfo::COLOR, KoChannelInfo::UINT16, 4, QColor(0,255,0)));
- addChannel(new KoChannelInfo(i18n("Blue"), 0* sizeof(quint16), \
KoChannelInfo::COLOR, KoChannelInfo::UINT16, 4, QColor(0,0,255)));
- addChannel(new KoChannelInfo(i18n("Alpha"), 3* sizeof(quint16), \
KoChannelInfo::ALPHA, KoChannelInfo::UINT16)); + addChannel(new \
KoChannelInfo(i18n("Red"), 2*sizeof(quint16), KoChannelInfo::COLOR, \
KoChannelInfo::UINT16, 2, QColor(255,0,0))); + addChannel(new \
KoChannelInfo(i18n("Green"), 1*sizeof(quint16), KoChannelInfo::COLOR, \
KoChannelInfo::UINT16, 2, QColor(0,255,0))); + addChannel(new \
KoChannelInfo(i18n("Blue"), 0*sizeof(quint16), KoChannelInfo::COLOR, \
KoChannelInfo::UINT16, 2, QColor(0,0,255))); + addChannel(new \
KoChannelInfo(i18n("Alpha"), 3*sizeof(quint16), KoChannelInfo::ALPHA, \
KoChannelInfo::UINT16, 2)); init();
-
+
addStandardCompositeOps<KoRgbU16Traits>(this);
}
bool KoRgbU16ColorSpace::willDegrade(ColorSpaceIndependence independence) const
{
- if (independence == TO_RGBA8)
+ if (independence == TO_RGBA8)
return true;
else
return false;
--- trunk/koffice/libs/pigment/colorspaces/KoRgbU8ColorSpace.cc #789644:789645
@@ -69,9 +69,9 @@
KoRgbU8ColorSpace::KoRgbU8ColorSpace( KoColorProfile *p) :
KoLcmsColorSpace<RgbU8Traits>(colorSpaceId(), i18n("RGB 8-bit \
integer/channel)"), TYPE_BGRA_8, icSigRgbData, p) {
- addChannel(new KoChannelInfo(i18n("Red"), 2, KoChannelInfo::COLOR, \
KoChannelInfo::UINT8, 1, QColor(255,0,0))); + addChannel(new \
KoChannelInfo(i18n("Red"), 2, KoChannelInfo::COLOR, KoChannelInfo::UINT8, 1, \
QColor(255,0,0)));
addChannel(new KoChannelInfo(i18n("Green"), 1, KoChannelInfo::COLOR, \
KoChannelInfo::UINT8, 1, QColor(0,255,0)));
- addChannel(new KoChannelInfo(i18n("Blue"), 0, KoChannelInfo::COLOR, \
KoChannelInfo::UINT8, 1, QColor(0,0,255))); + addChannel(new \
KoChannelInfo(i18n("Blue"), 0, KoChannelInfo::COLOR, KoChannelInfo::UINT8, 1, \
QColor(0,0,255)));
addChannel(new KoChannelInfo(i18n("Alpha"), 3, KoChannelInfo::ALPHA, \
KoChannelInfo::UINT8));
init();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic