summaryrefslogtreecommitdiff
path: root/lib/Image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Image.cc')
-rw-r--r--lib/Image.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Image.cc b/lib/Image.cc
index fedee9e..ad986f6 100644
--- a/lib/Image.cc
+++ b/lib/Image.cc
@@ -1,5 +1,8 @@
-#include "Image.h"
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
+#include "Image.h"
+#include "gettext.h"
Image::Image(unsigned int ax, unsigned int ay) : x(ax), y(ay), img((Color *) malloc(x * y * sizeof(Color))) {
Fill();
@@ -9,11 +12,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;
}
@@ -23,7 +26,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);
}