22 QObject *parent =
nullptr);
28 const QPixmap *
pixmap(
const QColor &color)
const;
virtual ~colorizer()=default
QPixmap base() const
Returns the base pixmap used by this colorizer.
std::map< QRgb, QPixmap > m_cache
const QPixmap * pixmap(const QColor &color) const
Returns a pixmap with some pixels changed to the target color.
colorizer(const QPixmap &base, int hue_to_replace, QObject *parent=nullptr)
Creates a colorizer that will replace every pixel of the given hue.