implemented import_image function

This commit is contained in:
TomTkacz
2025-03-10 04:33:42 -05:00
parent 6b0d311dc9
commit fa25da3d39
4 changed files with 72 additions and 1 deletions
+13 -1
View File
@@ -398,4 +398,16 @@ private:
LocalFileName filename;
Age age; ///< Age the image was last updated
};
// ----------------------------------------------------------------------------- : ExternalImage
/// Load an image from the filesystem
class ExternalImage : public GeneratedImage {
public:
ExternalImage(const String& filepath) : filepath(filepath) {};
Image generate(const Options&) const override;
bool operator == (const GeneratedImage& that) const override;
inline String toString() { return filepath; }
private:
String filepath;
};