[Digikam-devel] extragear/graphics/digikam/utilities/imageeditor/canvas

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] extragear/graphics/digikam/utilities/imageeditor/canvas

F.J.Cruz
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: [hidden email], [hidden email]

 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();
     
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel