-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixmap.h
48 lines (36 loc) · 824 Bytes
/
pixmap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef pixmap_h
#define pixmap_h
/******************************************************************************
Pixmap Class
NAME:pixmap.h
DATE:10/11/1196
AUTHOR: Z.A. Nolan
******************************************************************************/
#include <iostream.h>
#include "colour.h"
class TPixmap
{
private:
int _Width ;
int _Height ;
TColour *_Pixmap ;
public:
// constructors
TPixmap () ;
TPixmap (int Width,int Height) ;
// Destructor
~TPixmap () ;
// Selectors
TColour operator() (int Width,int Height) const;
// Modifiers
TColour &operator() (int Width,int Height) ;
Clear() ;
Clear (TColour Colour) ;
SetSize(int X,int Y) ;
Display() ;
int Width() ;
int Height() ;
// output
ostream &StreamPPMOut (ostream &Out) ;
} ;
#endif