public void SetCropGeometry(int left, int top, int width, int height) { // psz_geometry is undocumented // see: https://forum.videolan.org/viewtopic.php?f=32&t=78702, https://forum.videolan.org/viewtopic.php?f=32&t=112281 // right x bottom + left + top works :) LibVlc.libvlc_video_set_crop_geometry(Handle, String.Format("{0}x{1}+{2}+{3}", left + width, top + height, left, top)); }
public void UnSetCropGeometry() { LibVlc.libvlc_video_set_crop_geometry(Handle, null); }