Ejemplo n.º 1
0
 private void AddLogocheckBox_CheckedChanged(object sender, EventArgs e)
 {
     Vlc.DotNet.Core.ILogoManagement logo = myVlcControl.Video.Logo;
     if (AddLogocheckBox.Checked == true)
     {
         groupBox2.Enabled = true;
         LogoSettings();
     }
     else
     {
         groupBox2.Enabled = false;
         logo.Enabled      = false;
     }
 }
Ejemplo n.º 2
0
        private void LogoSettings()
        {
            Vlc.DotNet.Core.ILogoManagement logo = myVlcControl.Video.Logo;
            string fileName = LogotextBox.Text;

            logo.File    = fileName;
            logo.Enabled = true;
            if (TextPositioncomboBox.Text == "Center")
            {
                logo.Position = 0; //> { 0, 1, 2, 4, 8, 5, 6, 9, 10 } : Logo po
            }
            if (TextPositioncomboBox.Text == "Left")
            {
                logo.Position = 1;
            }
            if (TextPositioncomboBox.Text == "Right")
            {
                logo.Position = 2;
            }
            if (TextPositioncomboBox.Text == "Top")
            {
                logo.Position = 4;
            }
            if (TextPositioncomboBox.Text == "Bottom")
            {
                logo.Position = 8;
            }
            if (TextPositioncomboBox.Text == "Top-Left")
            {
                logo.Position = 5;
            }
            if (TextPositioncomboBox.Text == "Top-Right")
            {
                logo.Position = 6;
            }
            if (TextPositioncomboBox.Text == "Bottom-Left")
            {
                logo.Position = 9;
            }
            if (TextPositioncomboBox.Text == "Bottom-Right")
            {
                logo.Position = 10;
            }
            logo.Position = Convert.ToInt16(LogoPositioncomboBox.SelectedIndex);
            logo.X        = Convert.ToInt16(LogoLeftUpDown.Value);
            logo.Y        = Convert.ToInt16(LogoTopUpDown.Value);
            logo.Opacity  = LogotrackBar.Value;
        }