summaryrefslogtreecommitdiff
path: root/generic/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Image.cpp')
-rw-r--r--generic/Image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/Image.cpp b/generic/Image.cpp
index 1270a6a..b8396b1 100644
--- a/generic/Image.cpp
+++ b/generic/Image.cpp
@@ -13,11 +13,11 @@ Image::~Image() {
free((void *)img);
}
-bool Image::CanWrite() {
+bool Image::CanWrite() const {
return false;
}
-String Image::GetName() {
+String Image::GetName() const {
return String(_("Image ")) + x + "x" + y;
}
@@ -27,7 +27,7 @@ void Image::Fill(Color c) {
}
}
-Color Image::GetPixel(unsigned int px, unsigned int py) {
+Color Image::GetPixel(unsigned int px, unsigned int py) const {
if ((px >= x) || (py >= y)) {
return Color(0, 0, 0, 0);
}