private void btnApplyOSDPic_Click(object sender, EventArgs e) { m_nOsdNum2 = (uint)comboxOSDLayer2.SelectedIndex; m_xoffset2 = Convert.ToInt32(txtBox_Xoffset2.Text); m_yoffset2 = Convert.ToInt32(txtBox_Yoffset2.Text); m_width2 = Convert.ToInt32(txtBox_width2.Text); m_height2 = Convert.ToInt32(txtBox_height2.Text); m_nTransparent2 = Convert.ToUInt32(txtBox_Transparent2.Text); if (m_hCapDev[0] != 0) { string str_picture_path = m_strPicturePath; EXPORTS.QCAP_SET_OSD_PICTURE(m_hCapDev[0], m_nOsdNum2, m_xoffset2, m_yoffset2, m_width2, m_height2, ref str_picture_path, m_nTransparent2); } if (m_hCapDev[1] != 0) { string str_picture_path = m_strPicturePath; EXPORTS.QCAP_SET_OSD_PICTURE(m_hCapDev[1], m_nOsdNum2, m_xoffset2, m_yoffset2, m_width2, m_height2, ref str_picture_path, m_nTransparent2); } if (m_hCapDev[2] != 0) { string str_picture_path = m_strPicturePath; EXPORTS.QCAP_SET_OSD_PICTURE(m_hCapDev[2], m_nOsdNum2, m_xoffset2, m_yoffset2, m_width2, m_height2, ref str_picture_path, m_nTransparent2); } if (m_hCapDev[3] != 0) { string str_picture_path = m_strPicturePath; EXPORTS.QCAP_SET_OSD_PICTURE(m_hCapDev[3], m_nOsdNum2, m_xoffset2, m_yoffset2, m_width2, m_height2, ref str_picture_path, m_nTransparent2); } }