PyQt/图片/显示.9格式图片/pyd版本/QtNinePatch/QtNinePatch.h

27 lines
486 B
C
Raw Normal View History

2018-10-26 01:03:24 +08:00
#ifndef QTNINEPATCH_H
#define QTNINEPATCH_H
#include <QtCore/qglobal.h>
#if defined(QTNINEPATCHLIB_LIBRARY)
# define QTNINEPATCHLIBSHARED_EXPORT Q_DECL_EXPORT
#else
# define QTNINEPATCHLIBSHARED_EXPORT Q_DECL_IMPORT
#endif
#include <QImage>
#include <QPixmap>
#include <QPainter>
#include <vector>
class QtNinePatch;
class QTNINEPATCHLIBSHARED_EXPORT QtNinePatch
{
public:
static QPixmap createPixmapFromNinePatchImage(const QImage &, int, int);
};
#endif // QTNINEPATCH_H