|
Krita Source Code Documentation
|
#include <kis_channel_separator.h>
Public Member Functions | |
| KisChannelSeparator (KisViewManager *view) | |
| void | separate (KoUpdater *progress, enumSepAlphaOptions alphaOps, enumSepSource sourceOps, bool downscale, bool toColor, bool activateCurrentChannel) |
| virtual | ~KisChannelSeparator () |
Private Attributes | |
| KisViewManager * | m_viewManager |
Definition at line 28 of file kis_channel_separator.h.
| KisChannelSeparator::KisChannelSeparator | ( | KisViewManager * | view | ) |
Definition at line 51 of file kis_channel_separator.cc.
|
inlinevirtual |
Definition at line 34 of file kis_channel_separator.h.
| void KisChannelSeparator::separate | ( | KoUpdater * | progress, |
| enumSepAlphaOptions | alphaOps, | ||
| enumSepSource | sourceOps, | ||
| bool | downscale, | ||
| bool | toColor, | ||
| bool | activateCurrentChannel ) |
We should process the entire image, even when its pixels are transparent, because we might be pulling colors from under a zero-alpha channel.
Definition at line 56 of file kis_channel_separator.cc.
References KisViewManager::activeDevice(), KisNodeCommandsAdapter::addNode(), ALL_LAYERS, KoChannelInfo::ALPHA, KisNodeCommandsAdapter::beginMacro(), KisImage::bounds(), KoColorSpace::channels, KoChannelInfo::channelType(), KisPaintDevice::colorSpace(), COPY_ALPHA_TO_SEPARATIONS, CREATE_ALPHA_SEPARATION, KisPaintDevice::createHLineIteratorNG(), CURRENT_LAYER, KisSharedPtr< T >::data(), downscale, KisNodeCommandsAdapter::endMacro(), GrayAColorModelID, KoID::id(), KisViewManager::image(), KoColorSpaceRegistry::instance(), Integer16BitsColorDepthID, Integer8BitsColorDepthID, KoUpdater::interrupted(), kundo2_i18n(), m_viewManager, KoChannelInfo::name(), KisBaseConstIteratorNG::nextPixel(), KisHLineConstIteratorNG::nextRow(), KisBaseConstAccessor::oldRawData(), OPACITY_OPAQUE_U8, KoColorSpace::opacityU8(), KoChannelInfo::pos(), KisImage::projection(), KisImage::rootLayer(), KoColorSpace::scaleToU8(), KisLayer::setChannelFlags(), KoColorSpace::setOpacity(), KoUpdater::setProgress(), KoColorSpace::singleChannelPixel(), and KoChannelInfo::size().
|
private |
Definition at line 40 of file kis_channel_separator.h.