Skip to content

Instantly share code, notes, and snippets.

/filter.h Secret

Created May 12, 2016 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6a408ae5b060524e5b0b48c27134e790 to your computer and use it in GitHub Desktop.
Save anonymous/6a408ae5b060524e5b0b48c27134e790 to your computer and use it in GitHub Desktop.
#ifndef FILTER_H
#define FILTER_H
#include <QQuickImageProvider>
#include <QObject>
class Filter : public QObject, public QQuickImageProvider
{
Q_OBJECT
private:
int _kernelRadius; // フィルター半径
public:
Filter(QObject *parent);
~Filter();
// フィルター半径のセット
Q_INVOKABLE void setKernelRadius(int radius);
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
signals:
public slots:
};
#endif // FILTER_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment