VisioForge Video Capture SDK (Delphi / ActiveX)
ContentsIndexHome
PreviousUpNext
TVFVideoCapture.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
PHP
public Boolean OSD_Layers_Draw_Text($ID, $Left_, $Top_, $text, $FontName, $FontSize, Boolean $FontBold, Boolean $FontItalic, Boolean $FontUnderline, Boolean $FontStrikeOut, TColor $FontColor, byte $FontColorAlpha);
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) 2012. All rights reserved.
What do you think about this topic? Send feedback!