ImageDF.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <egami/Image.hpp>
10 #include <egami/ImageMono.hpp>
12 
13 namespace ewol {
14  namespace resource {
16  protected:
17  vec2 m_realImageSize;
18  protected:
19  ImageDF();
20  void init();
21  void init(std::string _genName, const std::string& _fileName, const ivec2& _size);
22  public:
23  virtual ~ImageDF() { };
24  protected:
30  void generateDistanceField(const egami::ImageMono& _input, egami::Image& _output);
31  public:
32  const vec2& getRealSize() {
33  return m_realImageSize;
34  };
35  public:
43  static ememory::SharedPtr<ewol::resource::ImageDF> create(const std::string& _filename, ivec2 _size=ivec2(-1,-1));
44  };
45  };
46 };
47 
Definition: ImageDF.hpp:15
Definition: Area.hpp:16
void generateDistanceField(const egami::ImageMono &_input, egami::Image &_output)
Generate distance field of this Image input.
static ememory::SharedPtr< ewol::resource::ImageDF > create(const std::string &_filename, ivec2 _size=ivec2(-1,-1))
keep the resource pointer.
Definition: Texture.hpp:15