mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Added 'recolor_image' function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1473 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -214,6 +214,20 @@ class InvertImage : public SimpleFilterImage {
|
||||
virtual bool operator == (const GeneratedImage& that) const;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : RecolorImage
|
||||
|
||||
/// Recolor an image
|
||||
class RecolorImage : public SimpleFilterImage {
|
||||
public:
|
||||
inline RecolorImage(const GeneratedImageP& image, Color color)
|
||||
: SimpleFilterImage(image), color(color)
|
||||
{}
|
||||
virtual Image generate(const Options& opt) const;
|
||||
virtual bool operator == (const GeneratedImage& that) const;
|
||||
private:
|
||||
Color color;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : FlipImage
|
||||
|
||||
/// Flip an image horizontally
|
||||
|
||||
Reference in New Issue
Block a user