libkdegames
kgimageprovider.cpp
Go to the documentation of this file.
37 QImage KgImageProvider::requestImage(const QString& source, QSize *size, const QSize& requestedSize)
57 image = QImage(m_renderer.boundsOnElement(spriteKey).size().toSize(), QImage::Format_ARGB32_Premultiplied);
KgImageProvider(KgThemeProvider *provider)
Construcs a new KgImageProvider with the supplied KgThemeProvider.
Definition: kgimageprovider.cpp:24
A theme provider manages KgTheme instances, and maintains a selection of the currentTheme().
Definition: kgthemeprovider.h:39
QImage requestImage(const QString &source, QSize *size, const QSize &requestedSize)
Reimplemented method that is called when a sprite pixmap is requested.
Definition: kgimageprovider.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.