-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFostroImage.h
More file actions
36 lines (28 loc) · 898 Bytes
/
Copy pathFostroImage.h
File metadata and controls
36 lines (28 loc) · 898 Bytes
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
#pragma once
#include <iostream>
#include <wand/MagickWand.h>
#include <string>
#include "FostroPixel.h"
#include "FostroImage.h"
#include "FostroDefines.h"
class FostroImage {
public:
unsigned long width;
unsigned long height;
char* filePath;
FostroPixel* pixels;
FostroImage(std::string imagePath, std::string filePath);
FostroImage();
FostroImage(const FostroImage& other, std::string filePath);
FostroImage& operator=(const FostroImage& other);
FostroImage operator+(const FostroImage& image1);
FostroImage operator-(const FostroImage& image1);
~FostroImage();
void saveImage();
FostroPixel* getPixel(unsigned long x, unsigned long y);
FostroPixel const* getConstPixel(unsigned long x, unsigned long y) const;
unsigned long getWidth() const;
unsigned long getHeight() const;
char* getFilePath();
void setFilePath(char* f);
};