-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpixmapoperations.h
45 lines (38 loc) · 1.04 KB
/
pixmapoperations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* @brief Functions used to deal with pixmaps.
*/
#ifndef PIXMAPOPERATIONS_H
#define PIXMAPOPERATIONS_H
// File must include
#include <QPixmap>
#include <QVector>
// Forward declaration
class QPainter;
/**
* @brief Init pixmaps of a thing.
*/
void initPixmaps(QString path, QVector<QPixmap>& pixmaps, int& frameCounts);
/**
* @brief Init pixmaps of some things.
*/
void initPixmaps(int count,
const char **paths,
QVector<QVector<QPixmap> >& pixmaps,
QVector<int>& frameCounts);
/**
* @brief Init pixmaps of some things.
*/
void initPixmaps(QVector<QString> paths,
QVector<QVector<QPixmap> >& pixmaps,
QVector<int>& frameCounts);
/**
* @brief Draw a pixmap with some options.
*/
void drawPixmapAt(QPainter *painter,
const QPixmap& pixmap,
double xRate,
double yRate,
QPointF pos,
bool resize = false,
bool center = false);
#endif // PIXMAPOPERATIONS_H