00001 #include "ImageGray.hpp"
00002 #include <iostream>
00003
00004 using namespace Millie;
00005
00006
00007 ImageGray::ImageGray(int largeur, int hauteur) :
00008 Image(largeur, hauteur, 1)
00009 {
00010 }
00011
00012 ImageGray::ImageGray() : Image(1)
00013 {
00014 }
00015
00016 ImageGray::~ImageGray()
00017 {
00018
00019 }
00020
00021 float ImageGray::getPixel(int x, int y) const
00022 {
00023 return Image::getPixel(x, y, 0);
00024 }
00025
00026 void ImageGray::setPixel(int x, int y, float value)
00027 {
00028 Image::setPixel(x, y, 0, value);
00029 }
00030