Rupali Kotgire(deleted)
|
Behaviour conflict with api screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT);
|
Rupali Kotgire(deleted)
09/19/2016 6:06 AM
post116812
|
Behaviour conflict with api screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT);
Hi experts,
Basically I need to take a screenshot from the QNX board. When I refer the program given on qnx site at :
http://www.qnx.com/developers/docs/660/index.jsp?topic=/com.qnx.doc.screen/topic/manual/cscreen_screenshot_disp_sample.
html
I am able to get the screenshot, but in this program screen_create_context uses SCREEN_DISPLAY_MANAGER_CONTEXT., which
obviously needs a root permission.
Whereas in my actual program I won't be a root user,but still i need to take a screenshot. For this i referred program
at: http://www.qnx.com/developers/docs/660/index.jsp?topic=%2Fcom.qnx.doc.screen%2Ftopic%2Fmanual%
2Fcscreen_screenshot_win_sample.html
Here it uses context as screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT); but the screenshot is blank,
with just a black image that I am not supposed to get.
Please let me know if there is an alternate way to do it !!!!!
Thanks in advance,
Rupali
|
|
|