[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/kolourpaint/tools (silent)
From: Clarence Dang <dang () kde ! org>
Date: 2007-10-07 6:39:05
Message-ID: 1191739145.854730.11323.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 722335 by dang:
SVN_SILENT comment update from trunk/
M +12 -9 kptoolcrop.cpp
--- branches/KDE/3.5/kdegraphics/kolourpaint/tools/kptoolcrop.cpp #722334:722335
@@ -118,20 +118,23 @@
//
- // Original rounded rectangle 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
//
- // After Crop Outside the Selection, the _image_ becomes:
+ // Afterwards, the _document_ image becomes:
//
- // Bttttt
- // ttTTtt T,t = Transparent
- // BttttB B = Background Colour
+ // b/---\ T = [unchanged]
+ // | TT | b = background color
+ // b\__/b [every other character] = [unchanged]
//
- // The selection pixmap stays the same.
+ // The selection is deleted.
//
+ // TODO: Do not introduce a mask if the result will not contain
+ // any transparent pixels.
+ //
QPixmap newDocPixmap (m_fromSelection.width (), m_fromSelection.height ());
kpPixmapFX::fill (&newDocPixmap, m_backgroundColor);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic