-
Notifications
You must be signed in to change notification settings - Fork 0
/
PBM.h
33 lines (24 loc) · 958 Bytes
/
PBM.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
#ifndef PBM_H
#define PBM_H
#include<vector>
#include<string>
#include<fstream>
#include<iostream>
#include<cassert>
#include"Formats.h"
class PBM:public Formats
{
private:
std::vector<std::vector<bool>> pixels;
public:
PBM();
~PBM();
void load(std::string path) override;//Ôóíêöèÿ çà ïðî÷èòàíå íà èíôîðìàöèÿ îò èçîáðàæåíèÿ.
void saveas(std::string path) const override;//Ôóíêöèÿ çà çàïàçâàíå íà èíôîðìàöèÿ îò èçîáðàæåíèå âúâ ôàéë, ðàçëè÷åí îò èçõîäíèÿ.
void print(std::ostream& out) const override;//Ôóíêöèÿ çà èçâåæäàíå íà èíôîðìàöèÿ çà äàäåí ôîðìàò.
std::vector<std::vector<bool>> getPixels() const;
void negative() override;//Öâåòîâî îáðúùàíå.
void rotation(std::string direction) override;//Çàâúðòàíå íà èçîáðàæåíèåòî íà 90° â çàâèñèìîñò îò çàäàäåíàòà ïîñîêà.
void collage(std::string direction, std::string image1, std::string image2, std::string outimage) override;//Ñúçäàâàíå íà êîëàæ.
};
#endif