Krita
ColorizeMask.cpp
105 QByteArray ColorizeMask::keyStrokePixelData(ManagedColor* color, int x, int y, int w, int h) const
130 bool ColorizeMask::setKeyStrokePixelData(QByteArray value, ManagedColor* color, int x, int y, int w, int h)
144 qWarning() << "ColorizeMask::setKeyStrokePixelData: not enough data to write to the paint device";
227 KisLayerPropertiesIcons::setNodePropertyAutoUndo(mask, KisLayerPropertiesIcons::colorizeNeedsUpdate, false, this->node()->image());
244 KisLayerPropertiesIcons::setNodePropertyAutoUndo(mask, KisLayerPropertiesIcons::colorizeShowColoring, enabled, this->node()->image());
void append(const T &value)
void removeKeyStroke(ManagedColor *color)
removeKeyStroke Remove a color from the Colorize Mask's keystrokes.
Definition: ColorizeMask.cpp:96
void setLimitToDeviceBounds(bool value)
setLimitToDeviceBounds Limit the colorize mask to the combined layer bounds of the strokes and the li...
Definition: ColorizeMask.cpp:203
QByteArray keyStrokePixelData(ManagedColor *color, int x, int y, int w, int h) const
keyStrokePixelData reads the given rectangle from the keystroke image data and returns it as a byte a...
Definition: ColorizeMask.cpp:105
int size() const const
int transparencyIndex() const
transparencyIndex Index of the transparent color.
Definition: ColorizeMask.cpp:88
The ManagedColor class is a class to handle colors that are color managed.
Definition: ManagedColor.h:45
void setCleanUpAmount(qreal value)
setCleanUpAmount This will attempt to handle messy strokes that overlap the line art where they shoul...
Definition: ColorizeMask.cpp:187
void initializeKeyStrokeColors(QList< ManagedColor * > colors, int transparentIndex=-1)
initializeKeyStrokeColors Set the colors to use for the Colorize Mask's keystrokes.
Definition: ColorizeMask.cpp:51
void resize(int size)
bool editKeyStrokes() const
editKeyStrokes Edit keystrokes mode allows the user to modify keystrokes on the active Colorize Mask.
Definition: ColorizeMask.cpp:271
const char * constData() const const
bool showOutput() const
showOutput Show output mode allows the user to see the result of the Colorize Mask's algorithm.
Definition: ColorizeMask.cpp:247
const char * name(StandardAction id)
void updateMask(bool force=false)
updateMask Process the Colorize Mask's keystrokes and generate a projection of the computed colors.
Definition: ColorizeMask.cpp:219
QList< ManagedColor * > keyStrokesColors() const
keyStrokesColors Colors used in the Colorize Mask's keystrokes.
Definition: ColorizeMask.cpp:38
void setEditKeyStrokes(bool enabled)
setEditKeyStrokes Toggle Colorize Mask's edit keystrokes mode.
Definition: ColorizeMask.cpp:263
void setShowOutput(bool enabled)
setShowOutput Toggle Colorize Mask's show output mode.
Definition: ColorizeMask.cpp:239
bool setKeyStrokePixelData(QByteArray value, ManagedColor *color, int x, int y, int w, int h)
setKeyStrokePixelData writes the given bytes, of which there must be enough, into the keystroke,...
Definition: ColorizeMask.cpp:130
void setEdgeDetectionSize(qreal value)
setEdgeDetectionSize Set the value to the thinnest line on the image.
Definition: ColorizeMask.cpp:171
void setUseEdgeDetection(bool value)
setUseEdgeDetection Activate this for line art with large solid areas, for example shadows on an obje...
Definition: ColorizeMask.cpp:155
int length() const const
virtual QString type() const override
type Krita has several types of nodes, split in layers and masks.
Definition: ColorizeMask.cpp:287
char * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:58:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:58:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.