mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
implemented import_image function
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user