summaryrefslogtreecommitdiffstats
path: root/chalk/doc/colorstrategyAPI
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/doc/colorstrategyAPI')
-rw-r--r--chalk/doc/colorstrategyAPI10
1 files changed, 5 insertions, 5 deletions
diff --git a/chalk/doc/colorstrategyAPI b/chalk/doc/colorstrategyAPI
index faa5724e..bb6e1267 100644
--- a/chalk/doc/colorstrategyAPI
+++ b/chalk/doc/colorstrategyAPI
@@ -3,7 +3,7 @@ This is a working document. It list the places where pixels are mangled and requ
The purpose is to find out which functions an API in colorstrategy must have to support pixelmangling in a colorstretegy independent manner.
-Requested function: apply an alpha tqmask to pixels
+Requested function: apply an alpha mask to pixels
Problem: alpha is hard-coded 8-bit in KisPixel, when it should be free
void KisPaintDevice::clearSelection()
@@ -33,20 +33,20 @@ void KisPaintDevice::clearSelection()
}
}
-void KisPaintDevice::applySelectionMask(KisSelectionSP tqmask)
+void KisPaintDevice::applySelectionMask(KisSelectionSP mask)
{
- QRect r = tqmask -> extent();
+ QRect r = mask -> extent();
crop(r);
for (Q_INT32 y = r.top(); y <= r.bottom(); ++y) {
KisHLineIterator pixelIt = createHLineIterator(r.x(), y, r.width(), true);
- KisHLineIterator maskIt = tqmask -> createHLineIterator(r.x(), y, r.width(), false);
+ KisHLineIterator maskIt = mask -> createHLineIterator(r.x(), y, r.width(), false);
while (!pixelIt.isDone()) {
KisPixel pixel = toPixel(pixelIt.rawData());
- KisPixel maskValue = tqmask -> toPixel(maskIt.rawData());
+ KisPixel maskValue = mask -> toPixel(maskIt.rawData());
pixel.alpha() = (pixel.alpha() * maskValue.alpha()) / MAX_SELECTED;