Skip to content

Commit

Permalink
Added Image.depth
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Nov 5, 2020
1 parent a96cd04 commit 5221ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tiled/scriptimage.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ScriptImage : public QObject

Q_PROPERTY(int width READ width)
Q_PROPERTY(int height READ height)
Q_PROPERTY(int depth READ depth)
Q_PROPERTY(QSize size READ size)
Q_PROPERTY(Format format READ format)

Expand Down Expand Up @@ -87,6 +88,7 @@ class ScriptImage : public QObject
Format format() const { return static_cast<Format>(mImage.format()); }
int width() const { return mImage.width(); }
int height() const { return mImage.height(); }
int depth() const { return mImage.depth(); }
QSize size() const { return mImage.size(); }

Q_INVOKABLE uint pixel(int x, int y) const
Expand Down

0 comments on commit 5221ebc

Please sign in to comment.