Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

[solved] .grabScreen produces wrong picture size (Windows)

$
0
0

@php0614 wrote:

hello i'm using OF ver 0.9.8 in Windows

the screen capture methods produces wrong size of pictures, for example if I set my screen size 1920X1080, resolution of the picture is 1916X1053. looks like this size is the same even if I increase the screen size a bit, like 1984X1116 or something.

this is very weird. this problem does not exist in my Mac machine.

I've tried to forcefully set the picture size by img.grabScreen(0,0,1920,1080); then size of the output image is 1920X1080, but shows little bit of black border on the lower right corner.

any ideas??

glReadBuffer(GL_FRONT);
// ofSaveScreen("mov1/"+ ofToString(ofGetFrameNum()) + ".tif");
img.grabScreen(0, 0 , 1920, 1080);
img.save("mov1/"+ ofToString(ofGetFrameNum()) + ".tif");

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles