2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_IMAGE_FOREVER_H_
|
|
|
|
#define DUST3D_APPLICATION_IMAGE_FOREVER_H_
|
|
|
|
|
|
|
|
#include <QByteArray>
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QImage>
|
2021-11-18 14:58:01 +00:00
|
|
|
#include <dust3d/base/uuid.h>
|
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class ImageForever {
|
2021-11-18 14:58:01 +00:00
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
static const QImage* get(const dust3d::Uuid& id);
|
|
|
|
static void copy(const dust3d::Uuid& id, QImage& image);
|
|
|
|
static const QByteArray* getPngByteArray(const dust3d::Uuid& id);
|
|
|
|
static dust3d::Uuid add(const QImage* image, dust3d::Uuid toId = dust3d::Uuid());
|
|
|
|
static void remove(const dust3d::Uuid& id);
|
2021-11-18 14:58:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|