[Digikam-devel] extragear/graphics/digikam/utilities/imageeditor/canvas
Francisco J. Cruz
fj.cruz at supercable.es
Sat May 20 22:41:15 BST 2006
SVN commit 543001 by fjcruz:
"Embed profile" option from Color Management plugin is working now.
A new method has been added:
void DImgInterface::setEmbeddedICCToOriginalImage( QString profilePath)
CCMAIL: digikam-devel at kde.org, caulier.gilles at kdemail.net
M +13 -0 dimginterface.cpp
M +2 -0 dimginterface.h
--- trunk/extragear/graphics/digikam/utilities/imageeditor/canvas/dimginterface.cpp #543000:543001
@@ -1041,6 +1041,19 @@
setModified();
}
+void DImgInterface::setEmbeddedICCToOriginalImage( QString profilePath)
+{
+ //@TODO implementme: setEmbeddedICCToOriginalImage( QString profilePath);
+ if (d->image.isNull())
+ {
+ kdWarning() << k_funcinfo << "d->image is NULL" << endl;
+ return;
+ }
+
+ kdDebug() << k_funcinfo << "Embedding profile: " << profilePath << endl;
+ d->image.getICCProfilFromFile( QFile::encodeName(profilePath));
+}
+
uchar* DImgInterface::getImageSelection()
{
if (!d->selW || !d->selH)
--- trunk/extragear/graphics/digikam/utilities/imageeditor/canvas/dimginterface.h #543000:543001
@@ -129,6 +129,8 @@
uchar* getImageSelection();
void putImageSelection(const QString &caller, uchar* data);
+
+ void setEmbeddedICCToOriginalImage( QString profilePath);
QByteArray getEmbeddedICC();
More information about the Digikam-devel
mailing list