Merge pull request #633 from GriffinRichards/api-images

Render API images as pixmaps
This commit is contained in:
GriffinR
2024-11-05 00:29:06 -05:00
committed by GitHub
2 changed files with 9 additions and 9 deletions

View File

@@ -50,19 +50,19 @@ private:
QColor fillColor;
};
class OverlayImage : public OverlayItem {
class OverlayPixmap : public OverlayItem {
public:
OverlayImage(int x, int y, QImage image) {
OverlayPixmap(int x, int y, QPixmap pixmap) {
this->x = x;
this->y = y;
this->image = image;
this->pixmap = pixmap;
}
~OverlayImage() {}
~OverlayPixmap() {}
virtual void render(QPainter *painter);
private:
int x;
int y;
QImage image;
QPixmap pixmap;
};
class Overlay