Media Player SDK
ContentsIndexHome
PreviousUpNext
TVFMediaPlayer.OSD_Layers_Draw_Text Method

Draws Text on the selected layer.

Pascal
function OSD_Layers_Draw_Text(ID: Integer; _Left: Integer; _Top: Integer; text: WideString; FontName: WideString; FontSize: Integer; FontBold: Boolean; FontItalic: Boolean; FontUnderline: Boolean; FontStrikeOut: Boolean; FontColor: TColor; FontColorAlpha: byte): Boolean;
C++
__fastcall Boolean OSD_Layers_Draw_Text(int ID, int _Left, int _Top, BSTR text, BSTR FontName, int FontSize, Boolean FontBold, Boolean FontItalic, Boolean FontUnderline, Boolean FontStrikeOut, TColor FontColor, byte FontColorAlpha);
C#
public Boolean OSD_Layers_Draw_Text(int ID, int _Left, int _Top, String text, String FontName, int FontSize, Boolean FontBold, Boolean FontItalic, Boolean FontUnderline, Boolean FontStrikeOut, TColor FontColor, byte FontColorAlpha);
Visual Basic
Public Function OSD_Layers_Draw_Text(ID As Integer, _Left As Integer, _Top As Integer, text As String, FontName As String, FontSize As Integer, FontBold As Boolean, FontItalic As Boolean, FontUnderline As Boolean, FontStrikeOut As Boolean, FontColor As TColor, FontColorAlpha As byte) As Boolean
Java
public Boolean OSD_Layers_Draw_Text(int ID, int _Left, int _Top, string text, string FontName, int FontSize, Boolean FontBold, Boolean FontItalic, Boolean FontUnderline, Boolean FontStrikeOut, TColor FontColor, byte FontColorAlpha);
IDL
Boolean OSD_Layers_Draw_Text(int ID, int _Left, int _Top, BSTR text, BSTR FontName, int FontSize, Boolean FontBold, Boolean FontItalic, Boolean FontUnderline, Boolean FontStrikeOut, TColor FontColor, byte FontColorAlpha);
JavaScript
OSD_Layers_Draw_Text
Parameters 
Description 
ID: Integer 
Layer ID. 
_Left: Integer 
Left. 
_Top: Integer 
Top. 
text: WideString 
Text. 
FontName: WideString 
Font name. 
FontSize: Integer 
Font size. 
FontBold: Boolean 
Font bold. 
FontItalic: Boolean 
Font italic. 
FontUnderline: Boolean 
Font underline. 
FontStrikeOut: Boolean 
Font strike out. 
FontColor: TColor 
Font color. 
FontColorAlpha: byte 
Font color alpha. 

True if the operation has been successful.

Copyright (c) 2013. All rights reserved.
What do you think about this topic? Send feedback!