1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/map/image.h

23 lines
357 B
C
Raw Normal View History

2018-08-23 20:26:10 +02:00
#ifndef IMAGE_H
#define IMAGE_H
#include <QImage>
#include "map.h"
class QPainter;
class Image
{
public:
2020-11-27 01:11:50 +01:00
Image(const QString &fileName) : _img(fileName) {}
Image(const QImage &img) : _img(img) {}
2018-08-23 20:26:10 +02:00
void draw(QPainter *painter, const QRectF &rect, Map::Flags flags);
void setDevicePixelRatio(qreal ratio);
private:
QImage _img;
};
#endif // IMAGE_H