QMedia
![]() |
![]() ![]() |
QM_GetChannelRect(areaRef; channelRef; channelLeft; channelTop; channelRight; channelBottom):error | |||
![]() |
areaRef | Longint | Grabber area reference |
![]() |
channelRef | Longint | Channel reference |
![]() |
channelLeft | Longint | Channel left |
![]() |
channelTop | Longint | Channel top |
![]() |
channelRight | Longint | Channel right |
![]() |
channelBottom | Longint | Channel bottom |
![]() |
error | Longint | Error result |
Returns the boundary rectangle of a channel in a grabber plug-in area. The rectangle's coordinates are relative to the top-left corner of the plug-in area.
The grabber plug-in area is specified by areaRef.
Parameter channelRef is the reference to the channel. The channel reference must have been previously obtained with a call to QM_NewChannel.
Parameters channelLeft, channelTop, channelRight and channelBottom receive the coordinates of the channel's left, top, right and bottom edges respectively. All coordinates are relative to the top-left corner of the plug-in area.
Example
C_LONGINT($channelLeft;$channelTop;$channelRight;$channelBottom) $error:=QM_GetChannelRect(xGrabber;$videoChannel;$channelLeft;$channelTop;$channelRight;$channelBottom) |
Related commands
QM_GetAreaRect | Returns the coordinates of a movie plug-in area. |