Commit c2f73f95 authored by finn.wundram's avatar finn.wundram
Browse files

AREA option bei image ergänzt

parent 4b7aca08
Pipeline #272218 passed with stages
in 2 minutes and 55 seconds
...@@ -216,6 +216,16 @@ int main(int argc, char* argv[]){ ...@@ -216,6 +216,16 @@ int main(int argc, char* argv[]){
int height = std::stoi(getInput("Height")); int height = std::stoi(getInput("Height"));
preprocessing.push_back(preprocessing::stretch(width, height)); preprocessing.push_back(preprocessing::stretch(width, height));
} else if (input == "AREA"){
std::vector<int> offset = coordinateInput();
int width = std::stoi(getInput("Width"));
int height = std::stoi(getInput("Height"));
color = colorInput();
preprocessing.push_back(preprocessing::area(offset[0], offset[1], width, height, color[0], color[1], color[2]));
color.clear();
} else{
std::cout << "Invalid option\n";
} }
} while(input != "next"); } while(input != "next");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment