public static void SetContentBuffer(ImageFormat format, int width, int height) { var errno = WrapperProxy.SetContentBuffer(format, width, height); if (ErrorNumber.OK != errno) { throw new Exception("开始共享内容失败,errno=" + errno); } }