class: ewol::resource::ImageDF
Description:
Constructor and Destructor:
# ImageDF ();
+ virtual ~ImageDF ();
Synopsis:
# vec2 m_realImageSize;
# void init ();
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
# void generateDistanceField (const egami::ImageMono & _input,
egami::Image & _output);
+ const vec2 & getRealSize ();
+ std::shared_ptr<ewol::resource::ImageDF> create (const std::string & _filename,
ivec2 _size);
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::ImageDF
Detail:
m_realImageSize
# vec2 m_realImageSize;
ImageDF
# ImageDF ();
init
# void init ();
init
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
~ImageDF
+ virtual ~ImageDF ();
generateDistanceField
# void generateDistanceField (const egami::ImageMono & _input,
egami::Image & _output);
Generate distance field of this Image input.
Parameter [input]: _input Input image to change in distance field mode.
Parameter [output]: _output New image generate with this image _input.
getRealSize
+ const vec2 & getRealSize ();
create
+ std::shared_ptr<ewol::resource::ImageDF> create (const std::string & _filename,
ivec2 _size);
keep the resource pointer.
Note: Never free this pointer by your own...
Parameter [input]: _filename Name of the image file.
Parameter [input]: _requested size of the image (usefull when loading .svg to automatic rescale)
Return: pointer on the resource or nullptr if an error occured.
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::ImageDF
Detail:
m_realImageSize
# vec2 m_realImageSize;
ImageDF
# ImageDF ();
init
# void init ();
init
# void init (std::string _genName,
const std::string & _fileName,
const ivec2 & _size);
~ImageDF
+ virtual ~ImageDF ();
generateDistanceField
# void generateDistanceField (const egami::ImageMono & _input,Generate distance field of this Image input.
egami::Image & _output);
Parameter [input]: | _input | Input image to change in distance field mode. | Parameter [output]: | _output | New image generate with this image _input. |
getRealSize
+ const vec2 & getRealSize ();
create
+ std::shared_ptr<ewol::resource::ImageDF> create (const std::string & _filename,keep the resource pointer.
ivec2 _size);
Note: Never free this pointer by your own...
Parameter [input]: | _filename | Name of the image file. | Parameter [input]: | _requested | size of the image (usefull when loading .svg to automatic rescale) |
Return: | pointer on the resource or nullptr if an error occured. |