mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
recolor_image function can now be used with custom colors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1477 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -227,6 +227,17 @@ class RecolorImage : public SimpleFilterImage {
|
||||
private:
|
||||
Color color;
|
||||
};
|
||||
/// Recolor an image, with custom colors
|
||||
class RecolorImage2 : public SimpleFilterImage {
|
||||
public:
|
||||
inline RecolorImage2(const GeneratedImageP& image, Color red, Color green, Color blue, Color white)
|
||||
: SimpleFilterImage(image), red(red), green(green), blue(blue), white(white)
|
||||
{}
|
||||
virtual Image generate(const Options& opt) const;
|
||||
virtual bool operator == (const GeneratedImage& that) const;
|
||||
private:
|
||||
Color red,green,blue,white;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : FlipImage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user