mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Implemented exporting symbol fonts;
Rendering symbols to an image always uses anti-aliassing (by downsampling from a large size); Finished the spoiler export template; Added <soft-line> tag to make line breaks use the line height for soft line breaks git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@440 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -38,6 +38,8 @@ class GeneratedImage : public ScriptValue {
|
||||
Package* local_package; ///< Package to load symbols and ImageValue images from
|
||||
};
|
||||
|
||||
/// Generate the image, and conform to the options
|
||||
Image generateConform(const Options&) const;
|
||||
/// Generate the image
|
||||
virtual Image generate(const Options&) const = 0;
|
||||
/// How must the image be combined with the background?
|
||||
@@ -53,6 +55,9 @@ class GeneratedImage : public ScriptValue {
|
||||
virtual String typeName() const;
|
||||
};
|
||||
|
||||
/// Resize an image to conform to the options
|
||||
Image conform_image(const Image&, const GeneratedImage::Options&);
|
||||
|
||||
// ----------------------------------------------------------------------------- : BlankImage
|
||||
|
||||
/// An image generator that returns a blank image
|
||||
|
||||
Reference in New Issue
Block a user