ImageStream
The ImageStream class is a base class designed for creating custom image stream formats, providing virtual methods for loading and saving images through streams. It supports handling different image types and formats, serving as a foundation for implementing specific image stream formats and enabling the customization and extension of image handling functionality. The class also includes static methods for checking supported formats and retrieving lists of compatible load and save formats, offering flexibility in managing and working with various image stream formats.
#include <format/TellusimImage.h>
Methods
virtual bool info(Stream &stream, Image &image, Flags flags, uint32_t offset, Async *async)
virtual bool load(Stream &stream, Image &image, Flags flags, uint32_t offset, Async *async)
virtual bool save(Stream &stream, const Image &image, Flags flags, uint32_t quality)
Image stream formats.
static bool check(const String &name, uint32_t magic = 0)
List of supported formats.
static String getLoadFormats()
static String getSaveFormats()
Enums
Flags
Name | Value |
---|---|
FlagNone | 0 |
FlagLoad | (1 << 0) |
FlagSave | (1 << 1) |
FlagLoadSave | (FlagLoad | FlagSave) |