Advertisement
Guest User

Andrei/Imagem.h

a guest
Nov 28th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.00 KB | None | 0 0
  1. #ifndef IMAGEM_H
  2. #define IMAGEM_H
  3. #include "Pixel.h"
  4.  
  5. class Imagem
  6. {
  7. private :
  8.     int linhas;
  9.     int colunas;
  10.     int maxCor;
  11.     Pixel **dados;
  12.  
  13.     void copia (const Imagem &);
  14.     void aloca (int, int); // Aloca matriz de Pixel
  15.     void desaloca ( ) ; // Desaloca matriz de Pixel
  16.  
  17.     int geraNumeroAleatorio (int, int);
  18.  
  19. public :
  20.     Imagem ( );
  21.     Imagem (int, int, int);
  22.     Imagem (const Imagem &);
  23.     Imagem ( ) ;
  24.  
  25.     Imagem &operator = (const Imagem &);
  26.  
  27.     void setDado (int, int, int, int, int);
  28.  
  29.     void setDado ( Pixel, int, int );
  30.  
  31.     Pixel getDado (int, int );
  32.  
  33.     void setLinhas(int);
  34.     void setColunas(int);
  35.     void setMaxCor(int);
  36.  
  37.     int getLinhas ( );
  38.     int getColunas ( );
  39.     int getMaxCor ( );
  40.  
  41.     Imagem negativo ( );
  42.     Imagem espelho ( );
  43.     Imagem espelhoHorizontal ( );
  44.     Imagem transposta ( );
  45.     Imagem vidro (int);
  46.     Imagem vidro ( );
  47.     Imagem embassado (int);
  48.     Imagem embassado ( );
  49. } ;
  50.  
  51.  
  52. #endif // IMAGEM_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement