MediaPlayerTakeSnapshot 方法 |
Take a snapshot of the current video window.
If i_width AND i_height is 0, original size is used. If i_width XOR
i_height is 0, original aspect-ratio is preserved.
命名空间:
LibVLCSharp.Shared
程序集:
CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法 public bool TakeSnapshot(
uint num,
string filePath,
uint width,
uint height
)
参数
- num
- 类型:SystemUInt32
number of video output (typically 0 for the first/only one) - filePath
- 类型:SystemString
the path where to save the screenshot to - width
- 类型:SystemUInt32
the snapshot's width - height
- 类型:SystemUInt32
the snapshot's height
返回值
类型:
Booleantrue on success
参见