mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
23 lines
357 B
C++
23 lines
357 B
C++
#ifndef IMAGE_H
|
|
#define IMAGE_H
|
|
|
|
#include <QImage>
|
|
#include "map.h"
|
|
|
|
class QPainter;
|
|
|
|
class Image
|
|
{
|
|
public:
|
|
Image(const QString &fileName) : _img(fileName) {}
|
|
Image(const QImage &img) : _img(img) {}
|
|
|
|
void draw(QPainter *painter, const QRectF &rect, Map::Flags flags);
|
|
void setDevicePixelRatio(qreal ratio);
|
|
|
|
private:
|
|
QImage _img;
|
|
};
|
|
|
|
#endif // IMAGE_H
|