Krita Source Code Documentation
Loading...
Searching...
No Matches
virtual_channel_info.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __VIRTUAL_CHANNEL_INFO_H
8#define __VIRTUAL_CHANNEL_INFO_H
9
10#include <KoChannelInfo.h>
11class KoColorSpace;
12
13
30{
31public:
39
41
42 VirtualChannelInfo(Type type, int pixelIndex, KoChannelInfo *realChannelInfo, const KoColorSpace *cs);
43
50
56 int pixelIndex() const;
57
58 Type type() const;
59 QString name() const;
60
62 int channelSize() const;
63
64 bool isAlpha() const;
65
66private:
68 int m_pixelIndex {0};
70
74};
75
76#endif /* __VIRTUAL_CHANNEL_INFO_H */
enumChannelValueType
enum to define the value of the channel
@ FLOAT32
use this for a float 32bits channel
KoChannelInfo * channelInfo() const
KoChannelInfo * m_realChannelInfo
KoChannelInfo::enumChannelValueType m_valueTypeOverride
KoChannelInfo::enumChannelValueType valueType() const