[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kolourpaint/imagelib/transforms (silent)
From:       Clarence Dang <dang () kde ! org>
Date:       2007-10-07 6:37:16
Message-ID: 1191739036.774541.10690.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 722329 by dang:

SVN_SILENT: better comments; will port to KDE3 shortly


 M  +13 -9     kpTransformCrop_ImageSelection.cpp  


--- trunk/KDE/kdegraphics/kolourpaint/imagelib/transforms/kpTransformCrop_ImageSelection.cpp \
#722328:722329 @@ -114,19 +114,23 @@
 
 
         //
-        // Original elliptical selection:
+        // e.g. original elliptical selection:
         //
-        //      T/---\      ...............
-        //      | TT |      T = Transparent
-        //      T\__/T      ...............
+        //     t/---\    T = original transparent selection pixel
+        //     | TT |    t = outside the selection region
+        //     t\__/t    [every other character] = original opaque selection pixel
         //
-        // Afterwards, the document image becomes:
+        // Afterwards, the _document_ image becomes:
         //
-        //      B.....      . = Original selection pixel
-        //      ..TT..      T = Transparent
-        //      B....B      B = Background Colour
+        //      b/---\   T = [unchanged]
+        //      | TT |   b = background color
+        //      b\__/b   [every other character] = [unchanged]
         //
-        // KDE3: Update comments.
+        // The selection is deleted.
+        //
+        // TODO: Do not introduce a mask if the result will not contain
+        //       any transparent pixels.
+        //
 
         kpImage newDocImage (document ()->width (), document ()->height ());
         kpPixmapFX::fill (&newDocImage, m_backgroundColor);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic