#include <kis_color_source.h>
Definition at line 112 of file kis_color_source.h.
◆ KoPatternColorSource()
| KoPatternColorSource::KoPatternColorSource |
( |
KisPaintDeviceSP | _pattern, |
|
|
int | _width, |
|
|
int | _height, |
|
|
bool | _locked ) |
◆ ~KoPatternColorSource()
| KoPatternColorSource::~KoPatternColorSource |
( |
| ) |
|
|
override |
◆ applyColorTransformation()
◆ colorize()
| void KoPatternColorSource::colorize |
( |
KisPaintDeviceSP | , |
|
|
const QRect & | rect, |
|
|
const QPoint & | _offset ) const |
|
overridevirtual |
Apply the color on a paint device
Implements KisColorSource.
Definition at line 231 of file kis_color_source.cpp.
232{
235 painter.fillRect(rect.x(), rect.y(), rect.width(), rect.height(),
m_device,
m_bounds);
236 }
237 else {
240
241
242
243 device->setX(x);
244 device->setY(y);
245 painter.fillRect(rect.x() + x, rect.y() + y, rect.width(), rect.height(),
m_device,
m_bounds);
246 device->setX(0);
247 device->setY(0);
248 }
249}
References KisFillPainter::fillRect(), m_bounds, m_device, m_locked, KisPaintDevice::setX(), and KisPaintDevice::setY().
◆ colorSpace()
| const KoColorSpace * KoPatternColorSource::colorSpace |
( |
| ) |
const |
|
overridevirtual |
◆ resize()
| void KoPatternColorSource::resize |
( |
double | xs, |
|
|
double | ys ) |
|
virtual |
◆ rotate()
| void KoPatternColorSource::rotate |
( |
double | r | ) |
|
|
virtual |
◆ selectColor()
This is function is called to initialize the color that will be used for the dab.
- Parameters
-
| mix | is a parameter between 0.0 and 1.0 |
| pi | paint information |
Implements KisColorSource.
Definition at line 215 of file kis_color_source.cpp.
216{
217 Q_UNUSED(mix);
218 Q_UNUSED(pi);
219}
◆ m_bounds
| QRect KoPatternColorSource::m_bounds |
|
private |
◆ m_device
◆ m_locked
| bool KoPatternColorSource::m_locked |
|
private |
The documentation for this class was generated from the following files: