Página Principal   Hierarquia de Classes   Lista de Componentes   Lista de Arquivos   Componentes Membros  

Image.hpp

00001 /*      Image.hpp - Morpheous
00002  *
00003  *  $Header: /home/aldon/cvs/Morpheous/include/Image.hpp,v 1.3 2003/08/21 01:58:48 aldon Exp $
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 
00021 #ifndef __IMAGE_HPP__
00022 #define __IMAGE_HPP__
00023 
00024 
00025 #include "Color.hpp"
00026 
00027 // TODO: Isso eh lugar de botar esse tipo de coisa?
00028 #ifndef NULL
00029     #define NULL (0)
00030 #endif
00031 
00032 
00036 class Image
00037 {
00038 private:
00039 
00043     Color* colorList;
00044     
00048     int width;
00049     
00053     int height;
00054 
00055 public:
00056     
00062     Image(int width, int height);
00063     
00068     Image(const char *filename);
00069     
00070 
00074     ~Image();
00075 
00080     int getWidth() const;
00081 
00086     int getHeight() const;
00087 
00094     Color getColor(int x, int y) const;
00095     
00102     void setColor(int x, int y, Color color);
00103     
00109     const Color* getColorList() const;
00110 
00117     Color getIColor(float x, float y) const;
00118 };
00119 
00120 #endif // __IMAGE_HPP__

Gerado em Sun Sep 21 20:18:44 2003 para Morpheous por doxygen1.2.13.1 escrito por Dimitri van Heesch, © 1997-2001