Commit 8f4a2524 authored by finn.wundram's avatar finn.wundram
Browse files

Merge branch 'areaFix' into 'main'

AREA option bei image ergänzt

See merge request !54
parents 62fdd8f2 c2f73f95
Pipeline #272325 passed with stages
in 2 minutes and 59 seconds
......@@ -216,6 +216,16 @@ int main(int argc, char* argv[]){
int height = std::stoi(getInput("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]));
} else{
std::cout << "Invalid option\n";
} while(input != "next");
Markdown is supported
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