Help please, windows form opencv c++ zoom out

Hesham AbdMalek Ramadan 1 Reputation point
2021-12-21T20:31:26.497+00:00

Hi iam using this fun to zoom in:

private: System::Void button26_Click(System::Object^ sender, System::EventArgs^ e) {
int x = Convert::ToInt32(textBox7->Text);
int y = Convert::ToInt32(textBox8->Text);

src = src(Rect(x, y, src.rows / 2, src.cols /2));
resize(src, src, src.size(), 2, 2, 0);
namedWindow("Show", 0);
imshow("Show", src);

}

need some help to zoom out

Developer technologies C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.