点击或拖拽改变大小

MediaPlayerCursor 方法

Get the mouse pointer coordinates over a video. Coordinates are expressed in terms of the decoded video resolution, not in terms of pixels on the screen/viewport (to get the latter, you can query your windowing system directly). Either of the coordinates may be negative or larger than the corresponding dimension of the video, if the cursor is outside the rendering area. Warning The coordinates may be out-of-date if the pointer is not located on the video rendering area. LibVLC does not track the pointer if it is outside of the video widget. Note LibVLC does not support multiple pointers(it does of course support multiple input devices sharing the same pointer) at the moment.

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public bool Cursor(
	uint num,
	ref int px,
	ref int py
)

参数

num
类型:SystemUInt32
number of the video (starting from, and most commonly 0)
px
类型:SystemInt32
pointer to get the abscissa [OUT]
py
类型:SystemInt32
pointer to get the ordinate [OUT]

返回值

类型:Boolean
true on success, false on failure
参见