mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add Canvas.decode static method
This commit is contained in:
parent
d714e6943a
commit
2095e82f1a
3 changed files with 55 additions and 8 deletions
|
|
@ -6,6 +6,8 @@
|
|||
#include "io/fwd.hpp"
|
||||
#include "util/Buffer.hpp"
|
||||
#include "util/EnumMetadata.hpp"
|
||||
#include "util/span.hpp"
|
||||
#include "typedefs.hpp"
|
||||
|
||||
class ImageData;
|
||||
|
||||
|
|
@ -25,5 +27,6 @@ namespace imageio {
|
|||
|
||||
std::unique_ptr<ImageData> read(const io::path& file);
|
||||
void write(const io::path& file, const ImageData* image);
|
||||
std::unique_ptr<ImageData> decode(ImageFileFormat format, util::span<ubyte> src);
|
||||
util::Buffer<unsigned char> encode(ImageFileFormat format, const ImageData& image);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue