2014-02-10 01:10:30 +00:00
|
|
|
#ifndef RESOURCE_SAVER_PNG_H
|
|
|
|
#define RESOURCE_SAVER_PNG_H
|
|
|
|
|
|
|
|
#include "io/resource_saver.h"
|
|
|
|
|
|
|
|
class ResourceSaverPNG : public ResourceFormatSaver {
|
|
|
|
public:
|
|
|
|
|
2014-11-13 03:53:12 +00:00
|
|
|
static Error save_image(const String &p_path, Image& p_img);
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
virtual Error save(const String &p_path,const RES& p_resource,uint32_t p_flags=0);
|
|
|
|
virtual bool recognize(const RES& p_resource) const;
|
|
|
|
virtual void get_recognized_extensions(const RES& p_resource,List<String> *p_extensions) const;
|
2014-11-13 03:53:12 +00:00
|
|
|
|
|
|
|
ResourceSaverPNG();
|
2014-02-10 01:10:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // RESOURCE_SAVER_PNG_H
|