|
Krita Source Code Documentation
|
Functions | |
| KisImageSP | makeImage (KisViewManager *view, KisNodeList nodes) |
| void | trimDevice (KisViewManager *view, KisPaintDeviceSP device, bool makeSharpClip=false, const KisTimeSpan &range=KisTimeSpan()) |
| KisImageSP ActionHelper::makeImage | ( | KisViewManager * | view, |
| KisNodeList | nodes ) |
Definition at line 130 of file kis_selection_action_factories.cpp.
References KisNodeFacade::addNode(), KisImage::colorSpace(), KisImage::height(), KisViewManager::image(), KisImage::refreshGraphAsync(), KisNodeFacade::root, KisImage::setResolution(), KisImage::waitForDone(), KisImage::width(), KisImage::xRes(), and KisImage::yRes().
| void ActionHelper::trimDevice | ( | KisViewManager * | view, |
| KisPaintDeviceSP | device, | ||
| bool | makeSharpClip = false, | ||
| const KisTimeSpan & | range = KisTimeSpan() ) |
Sharp method is an exact reverse of COMPOSITE_OVER so if you cover the cut/copied piece over its source you get an exactly the same image without any seams
Definition at line 70 of file kis_selection_action_factories.cpp.
References KoColorSpace::applyAlphaNormedFloatMask(), KoColorSpace::applyAlphaU8Mask(), KisImage::bounds(), KisPaintDevice::colorSpace(), KoColor::createTransparent(), KisPaintDevice::crop(), KisPaintDevice::defaultPixel(), KisViewManager::image(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::oldRawData(), KoColorSpace::opacityF(), KisSelection::projection(), KisPaintDevice::purgeDefaultPixels(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), KisSelection::selectedExactRect(), KisViewManager::selection(), and KisPaintDevice::setDefaultPixel().