Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
michel.macke
DisplayProjekt
Commits
c2f73f95
Commit
c2f73f95
authored
Feb 02, 2022
by
finn.wundram
Browse files
AREA option bei image ergänzt
parent
4b7aca08
Pipeline
#272218
passed with stages
in 2 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Beispielanwendungen/CommandLineClient/main.cpp
View file @
c2f73f95
...
...
@@ -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
]));
color
.
clear
();
}
else
{
std
::
cout
<<
"Invalid option
\n
"
;
}
}
while
(
input
!=
"next"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment