#ifndef RESOURCE_SAVER_PNG_H #define RESOURCE_SAVER_PNG_H /* resource_saver_png.h */ #include "core/io/image.h" #include "core/io/resource_saver.h" class ResourceSaverPNG : public ResourceFormatSaver { public: static Error save_image(const String &p_path, const Ref &p_img); static PoolVector save_image_to_buffer(const Ref &p_img); 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 *p_extensions) const; ResourceSaverPNG(); }; #endif // RESOURCE_SAVER_PNG_H