Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_channel_separator.h
Go to the documentation of this file.
1
/*
2
* This file is part of the KDE project
3
*
4
* SPDX-FileCopyrightText: Michael Thaler <michael.thaler@physik.tu-muenchen.de>
5
*
6
* SPDX-License-Identifier: GPL-2.0-or-later
7
*/
8
9
#ifndef _KIS_CHANNEL_SEPARATOR_H_
10
#define _KIS_CHANNEL_SEPARATOR_H_
11
12
class
KoUpdater
;
13
class
KisViewManager
;
14
15
enum
enumSepAlphaOptions
{
16
COPY_ALPHA_TO_SEPARATIONS
= 0,
17
DISCARD_ALPHA
= 1,
18
CREATE_ALPHA_SEPARATION
= 2
19
};
20
21
22
enum
enumSepSource
{
23
CURRENT_LAYER
= 0,
24
ALL_LAYERS
= 1,
25
VISIBLE_LAYERS
= 2
26
};
27
28
class
KisChannelSeparator
29
{
30
31
public
:
32
33
KisChannelSeparator
(
KisViewManager
* view);
34
virtual
~KisChannelSeparator
() {}
35
36
void
separate
(
KoUpdater
* progress,
enumSepAlphaOptions
alphaOps,
enumSepSource
sourceOps,
bool
downscale
,
bool
toColor,
bool
activateCurrentChannel);
37
38
private
:
39
40
KisViewManager
*
m_viewManager
;
41
42
};
43
44
#endif
downscale
#define downscale(quantum)
Definition
RgbU8ColorSpace.cpp:24
KisChannelSeparator
Definition
kis_channel_separator.h:29
KisChannelSeparator::~KisChannelSeparator
virtual ~KisChannelSeparator()
Definition
kis_channel_separator.h:34
KisChannelSeparator::separate
void separate(KoUpdater *progress, enumSepAlphaOptions alphaOps, enumSepSource sourceOps, bool downscale, bool toColor, bool activateCurrentChannel)
Definition
kis_channel_separator.cc:56
KisChannelSeparator::KisChannelSeparator
KisChannelSeparator(KisViewManager *view)
Definition
kis_channel_separator.cc:51
KisChannelSeparator::m_viewManager
KisViewManager * m_viewManager
Definition
kis_channel_separator.h:40
KisViewManager
Definition
KisViewManager.h:52
KoUpdater
Definition
KoUpdater.h:36
enumSepSource
enumSepSource
Definition
kis_channel_separator.h:22
CURRENT_LAYER
@ CURRENT_LAYER
Definition
kis_channel_separator.h:23
VISIBLE_LAYERS
@ VISIBLE_LAYERS
Definition
kis_channel_separator.h:25
ALL_LAYERS
@ ALL_LAYERS
Definition
kis_channel_separator.h:24
enumSepAlphaOptions
enumSepAlphaOptions
Definition
kis_channel_separator.h:15
COPY_ALPHA_TO_SEPARATIONS
@ COPY_ALPHA_TO_SEPARATIONS
Definition
kis_channel_separator.h:16
DISCARD_ALPHA
@ DISCARD_ALPHA
Definition
kis_channel_separator.h:17
CREATE_ALPHA_SEPARATION
@ CREATE_ALPHA_SEPARATION
Definition
kis_channel_separator.h:18
plugins
extensions
separate_channels
kis_channel_separator.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52