Expand addImage to allow image subsets, transformations, and transparency

This commit is contained in:
GriffinR
2021-11-27 23:50:44 -05:00
committed by huderlem
parent ebd7af8846
commit 630febff54
4 changed files with 33 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ public:
void clearItems();
void addText(QString text, int x, int y, QString color = "#000000", int fontSize = 12);
void addRect(int x, int y, int width, int height, QString color = "#000000", bool filled = false);
bool addImage(int x, int y, QString filepath);
bool addImage(int x, int y, QString filepath, int width = -1, int height = -1, unsigned offset = 0, bool hflip = false, bool vflip = false, bool setTransparency = false);
private:
QList<OverlayItem*> items;
};