1 Star 0 Fork 0

blog/Antivcode

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
IImage.h 815 Bytes
Copy Edit Raw Blame History
Micooz authored 2014-11-26 18:01 +08:00 . project init
#ifndef _IIMAGE_H_
#define _IIMAGE_H_
#include <memory>
#include <string>
#include <vector>
#include "Color.h"
#include "Slice.h"
typedef std::vector<std::shared_ptr<Slice> > SliceCollection;
class IImage {
public:
IImage();
virtual ~IImage();
virtual Color getPixel(const uint32_t x, const uint32_t y) = 0;
virtual void setPixel(const uint32_t x, const uint32_t y, const Color &color) = 0;
virtual void binaryZate() = 0;
virtual void makeGray() = 0;
virtual std::shared_ptr<SliceCollection> cut() = 0;
virtual void saveTo(const std::string& file) = 0;
virtual uint32_t getWidth()const = 0;
virtual uint32_t getHeight()const = 0;
//getter
bool* getLattice()const;
byte* getData()const;
protected:
byte *_data;
bool *_lattice;
};
#endif //_IIMAGE_H_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blog/Antivcode.git
git@gitee.com:blog/Antivcode.git
blog
Antivcode
Antivcode
master

Search