VideoPlayer.OSDItemOutlineTextChange method |
|
Remarks
Changes the string and settings of the given outlined text item on the On-Screen-Display (OSD).
For further details about the use of the embedded video player see the VideoPlayer object section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic] control.VideoPlayer.OSDItemOutlineTextChange ( nPlayer as Integer, nItemUniqueId as Long, strText as String, pLogFont as long, strFacename as String, color as OLE_COLOR, colorOutline as OLE_COLOR, nAlignment as enumTextAlignment, nOutlineWidth as Integer ) as enumErrorCodes |
[C++] short control.VideoPlayer.OSDItemOutlineTextChange ( short nPlayer, long nItemUniqueId, LPCTSTR strText, long pLogFont, LPCTSTR strFacename, OLE_COLOR color, OLE_COLOR colorOutline, short nAlignment, short nOutlineWidth ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nPlayer |
Number representing the zero-based index of the player that will use the video player. |
||||||||||||
nItemUniqueId |
Unique identifier of item returned by a previous call to the VideoPlayer.OSDItemOutlineTextAdd method |
||||||||||||
strText |
Text string |
||||||||||||
pLogFont |
Address in memory of the the LOGFONT structure containing the font settings used to render this item. Refer to the Microsoft documentation for details about the LOGFONT structure. The lfFaceName member of the LOGFONT structure is currently ignored: use the strFacename parameter below for passing the typeface of the font. |
||||||||||||
strFacename |
String containing the typeface of the font, for example "Arial" or "Times New Roman" |
||||||||||||
color |
Color used to render this item |
||||||||||||
colorOutline |
Color used to render the outline of the text. |
||||||||||||
nAlignment |
Text alignment respect to the item's rectangle. Supported values are the following:
|
||||||||||||
nOutlineWidth |
Width of the outline expressed in pixels. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |