Removal of Image from Variant, converted to a Resource.
This commit is contained in:
@ -30,11 +30,12 @@
|
||||
#ifndef RESOURCE_SAVER_PNG_H
|
||||
#define RESOURCE_SAVER_PNG_H
|
||||
|
||||
#include "image.h"
|
||||
#include "io/resource_saver.h"
|
||||
|
||||
class ResourceSaverPNG : public ResourceFormatSaver {
|
||||
public:
|
||||
static Error save_image(const String &p_path, Image &p_img);
|
||||
static Error save_image(const String &p_path, const Ref<Image> &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;
|
||||
|
||||
Reference in New Issue
Block a user