aboutsummaryrefslogtreecommitdiff
path: root/utils/Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/Utils.h')
-rw-r--r--utils/Utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/Utils.h b/utils/Utils.h
index 1f3d971917..28382f47e4 100644
--- a/utils/Utils.h
+++ b/utils/Utils.h
@@ -410,6 +410,20 @@ public:
}
}
+ /** Return the width of the currently open PPM file.
+ */
+ unsigned int width() const
+ {
+ return _width;
+ }
+
+ /** Return the height of the currently open PPM file.
+ */
+ unsigned int height() const
+ {
+ return _height;
+ }
+
private:
std::ifstream _fs;
unsigned int _width, _height;