Grabber::getWindowPosition Method |
|||||||||||||||||||||||
This method retrieves the current position and size of the grabber's live video window. | |||||||||||||||||||||||
Syntax: | bool getWindowPosition( long& posx, long& posy, long& width, long& height); |
||||||||||||||||||||||
|
|||||||||||||||||||||||
Return value: | true on success, false otherwise. |
||||||||||||||||||||||
Sample: | This example demonstrates how to retrieve the size and position of the grabber's live video window and store them into four long variables. long posx; long posy; long width; long height; if( grabber.getWindowPosition( posx, posy, width, height ) == true ) { printf("Current window position is %d %d %d %d\n",posx, posy, width, height); } |
||||||||||||||||||||||
See also: | Grabber, Grabber::setWindowPosition, Grabber::setWindowSize, Grabber::setDefaultWindowPosition, Grabber::getDefaultWindowPosition |