ScnLib_SetLogoTextA/W() | 标准版 | 专业版 | 超级版 | 游戏版 |
C++ |
__declspec(dllimport) BOOL __stdcall ScnLib_SetLogoTextA(LPCSTR pcszText, const LOGFONTA *lfFont, COLORREF crColor, BOOL bShadow);
__declspec(dllimport) BOOL __stdcall ScnLib_SetLogoTextW(LPCWSTR pcwszText, const LOGFONTW *lfFont, COLORREF crColor, BOOL bShadow); |
✔ | ✔ | ✔ | ✔ |
C# |
[DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern bool ScnLib_SetLogoTextW(string Text, [MarshalAs(UnmanagedType.LPStruct)]LOGFONT Font, uint Color, bool Shadow); |
Basic |
Public Declare Unicode Function ScnLib_SetLogoTextW Lib "ScnLib.dll" (ByVal Text As String, <MarshalAs(UnmanagedType.LPStruct)> Font As LOGFONT, ByVal Color As UInt32, ByVal Shadow As Boolean) As Boolean |
Delphi |
function ScnLib_SetLogoTextA(const Text: PAnsiChar; const Font: tagLogFontA; Color: LongWord; Shadow: LongBool): LongBool; stdcall; external 'ScnLib.dll';
function ScnLib_SetLogoTextW(const Text: PWideChar; const Font: tagLogFontW; Color: LongWord; Shadow: LongBool): LongBool; stdcall; external 'ScnLib.dll'; |
- 描述
设置要在视频中添加的徽标文本。
- 参数
- Text [in]
您要在视频中添加的徽标文本。徽标文本可以包含以下预定义变量的任意组合:
- <duration> - 插入当前录制时长字符串,格式为 HH:MM:SS。
- <date> - 插入以短格式表示的当前日期字符串,自适应当前系统语言环境。
- <time> - 插入以短格式表示的当前时间字符串,自适应当前系统语言环境。
- <date-time> - 插入以短格式表示的当前日期&时间字符串,自适应当前系统语言环境。
- <long-date> - 插入以长格式表示的当前日期字符串,自适应当前系统语言环境。
- <long-date-time> - 插入以长格式表示的当前日期&时间字符串,自适应当前系统语言环境。
- <pc-name> - 插入当前计算机名称字符串。
- <user-name> - 插入当前用户名称字符串。
例如:Rec <pc-name> <date-time>
- Font [in]
描述用于显示徽标文本的字体的 LOGFONT 结构体。
- Color [in]
显示徽标文本的颜色。为 COLORREF 格式。
- Shadow [in]
在您的徽标文字下方是否绘制黑色阴影。
- 返回值
如果您的徽标文本设置成功,则返回值为 TRUE。否则,返回值为 FALSE。
- 备注
调用此函数来设置要添加到视频中的徽标文本。徽标文本中可以包含上面列出的预定义变量的任意组合。允许在录制过程中调用此函数。向此函数传递零值或空字符串可以隐藏视频中的徽标文本。要获取当前徽标文本,请调用 ScnLib_GetLogoTextA/W()。
- 参见
ScnLib_IsLogoVisible(), ScnLib_GetLogoTextA/W(), ScnLib_SetLogoImageA/W()
|