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

Francisco J. Cruz fj.cruz at supercable.es
Thu Jan 19 22:56:50 GMT 2006


SVN commit 500310 by fjcruz:

New getEmbeddedICC() method has been implemented to allow retrieve an image embedded ICC profile (if it exists).

CCMAIL:digikam-devel at kde.org

 M  +6 -11     dimginterface.cpp  
 M  +2 -1      dimginterface.h  


--- trunk/extragear/graphics/digikam/utilities/imageeditor/canvas/dimginterface.cpp #500309:500310
@@ -902,6 +902,11 @@
     d->undoMan->getRedoHistory(titles);
 }
 
+QByteArray DImgInterface::getEmbeddedICC()
+{
+    return d->image.getICCProfil();
+}
+
 // -----------------------------------------------------------------------------------
 // FIXME Remove methods below when all image plugins will be ported to DImg
 
@@ -995,18 +1000,8 @@
     emit signalModified(true, d->undoMan->anyMoreRedo());
 }
 
-bool DImgInterface::hasICCEmbedded()
-{
-    if (d->image.getICCProfil().isNull())
-    {
-        return false;
-    }
-    else
-    {
-        return true;
-    }
-}
 
+
 }  // namespace Digikam
 
 #include "dimginterface.moc"
--- trunk/extragear/graphics/digikam/utilities/imageeditor/canvas/dimginterface.h #500309:500310
@@ -88,7 +88,6 @@
     bool   hasAlpha();
     bool   sixteenBit();
     bool   exifRotated();
-    bool   hasICCEmbedded();
 
     void   setSelectedArea(int x, int y, int w, int h);
     void   getSelectedArea(int& x, int& y, int& w, int& h);
@@ -123,6 +122,8 @@
     uchar* getImageSelection();
     void   putImageSelection(uchar* data, bool saveUndo=true);
 
+    QByteArray getEmbeddedICC();
+
     // FIXME : remove these methods when all image plugins will be ported to DImg.
     uint*  getData();
     void   putData(uint* data, int w, int h);



More information about the Digikam-devel mailing list