Ejemplo n.º 1
0
        /// <summary>
        /// 局部渲染
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RenderRect_MenuItem_Click(object sender, EventArgs e)
        {
            if (channelID <= 0)
            {
                return;
            }

            var panelSize = this.panel1.ClientSize;
            int ret       = PlayerSdk.EasyPlayer_SetRenderRect(channelID, new Rect {
                X = 0, Y = 0, Width = panelSize.Width / 2, Height = panelSize.Height / 2
            });

            (sender as ToolStripMenuItem).CheckState = CheckState.Checked;
        }