-
Notifications
You must be signed in to change notification settings - Fork 0
/
Image.h
41 lines (34 loc) · 850 Bytes
/
Image.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
#pragma once
#include<string>
using namespace std;
class Image
{
int r, c; // stores number of rows and cols of the image
string name;
string date;
float size;
char mat[20][20];
Image* next; // points to the next image in gallery
Image* prev; // points to the previous image in gallery
public:
Image(int rows, int cols, string nm, string dt, int sz)
{
r = rows;
c = cols;
name = nm;
date = dt;
size = sz;
next = NULL;
prev = NULL;
}
void accept(char matrix[20][20]);
void rotate_right();
void rotate_left();
void flip();
void crop();
void display();
void rename_img();
void rev(char c[]);
void clear_screen();
friend class Gallery;
};