Ejemplo n.º 1
0
        //可视化设置自定义分辨率。
        private void button_ROI_Click(object sender, EventArgs e)
        {
            tSdkImageResolution t;
            CameraSdkStatus     status;

            MvApi.CameraGetImageResolution(m_hCamera, out t);
            status = MvApi.CameraCustomizeResolution(m_hCamera, ref t);
            if (status == CameraSdkStatus.CAMERA_STATUS_SUCCESS)
            {
                m_tRoiResolution = t;
                MvApi.CameraSetImageResolution(m_hCamera, ref m_tRoiResolution);
            }
        }