Grabber::setWindowPosition Method

Sets the position of the grabber's live video window.
Syntax:
bool setWindowPosition( long posx, long posy );
Parameter Description
posx

Specifies the x-coordinate of the upper left hand corner of the video window. It defaults to 0.

posy

Specifies the y-coordinate of the upper left hand corner of the video window. It defaults to 0.

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

<< Grabber

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.