Whats the simplest way to determine the screen resolution? [closed]

asked 2015-04-01 09:31:35 -0500

kauevestena gravatar image

Hello, im building a project who will be compiled to be executed in more than one machine (in fact, in a educational lab).

So, i having trouble with images with the resolution bigger than the screen resolution (in fact 5184 x 3456), i can't show it, so i know i'll need to use the pyramids concept, to show a image who''ll fit the "size" of the screen.

To do that, i'll realize that i'll need to resize the image according to each screen size rather than a fixed one. This way i can do the positioning of the image realtive to the screen in a standart way.

So, whats the best way to do that?

(i'm a brasilian student, apologize for my primitive english)

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by FooBar
close date 2015-04-01 11:32:43.058671



That's not an OpenCV problem. It depends on your OS. But check this: http://stackoverflow.com/questions/11...

FooBar gravatar imageFooBar ( 2015-04-01 10:13:34 -0500 )edit

Thanks a lot!

kauevestena gravatar imagekauevestena ( 2015-04-01 13:49:43 -0500 )edit

Another question: how to mod the code to return the width and heigth as numbers?

kauevestena gravatar imagekauevestena ( 2015-04-01 13:53:52 -0500 )edit