Skip to content

Commit

Permalink
fixup! Add ~CHAN() IPF for formula adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 12, 2017
1 parent d1e853b commit f90ea4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/image_modifications.hpp
Expand Up @@ -296,20 +296,20 @@ class adjust_alpha_modification : public modification
class adjust_channels_modification : public modification
{
public:
adjust_channels_modification(const std::string& formula)
: formulas_(formula)
adjust_channels_modification(const std::vector<std::string>& formulas)
: formulas_(formulas)
{
if(formulas_.size() == 0) {
formulas.push_back("red");
formulas_.push_back("red");
}
if(formulas_.size() == 1) {
formulas.push_back("green");
formulas_.push_back("green");
}
if(formulas_.size() == 2) {
formulas.push_back("blue");
formulas_.push_back("blue");
}
if(formulas_.size() == 3) {
formulas.push_back("alpha");
formulas_.push_back("alpha");
}
}

Expand Down

0 comments on commit f90ea4a

Please sign in to comment.