Grabber::setWindowPosition Method |
|||||||||||||||||
Sets the position of the grabber's live video window. | |||||||||||||||||
Syntax: | bool setWindowPosition( long posx, long posy ); |
||||||||||||||||
|
|||||||||||||||||
Return value: | true on success, false otherwise. |
||||||||||||||||
Remarks: | A position for the live video window can only be set, if Grabber::getDefaultWindowPosition returns false. If an application wants to alter the position of the live video window, it should call Grabber::setDefaultWindowPosition(false) first. |
||||||||||||||||
Sample: | This example demonstrates how to set the position of the grabber's live video window. long posx = 50; long posy = 50; long width = 150; long height = 100; if( grabber.setWindowPosition( posx, posy ) == true ) { printf("New window position is %d %d\n",posx, posy); } else { printf("Failed to set the new window position!\n"); } |
||||||||||||||||
See also: | Grabber, Grabber::setWindowSize, Grabber::getWindowPosition, Grabber::setDefaultWindowPosition, Grabber::getDefaultWindowPosition |