-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHeader.h
39 lines (36 loc) · 864 Bytes
/
Header.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
#pragma once
#include <string>
#include <fstream>
#include <iostream>
using namespace std;
class Header
{
public:
char idLength;
char colorMapType;
char dataTypeCode;
short colorMapOrigin;
short colorMapLength;
char colorMapDepth;
short xOrigin;
short yOrigin;
short width;
short height;
char bytesPerPixel;
char imageDescriptor;
Header();
Header(char, char, char, short, short, char, short, short, short, short, char, char);
char getIDLength() const;
char getColorMapType() const;
char getDataTypeCode() const;
short getColorMapOrigin() const;
short getColorMapLength() const;
char getColorMapDepth() const;
short getXOrigin() const;
short getYOrigin() const;
short getWidth() const;
short getHeight() const;
char getBytesPerPixel() const;
char getImageDescriptor() const;
void PrintHeader();
};