Exemple #1
0
 /// <summary>
 /// Zoom the art
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnArtZoom_Click(object sender, EventArgs e)
 {
     DBBasicInfo mv = null;
       switch (tcMusicVideo.SelectedTab.Name)
       {
     case "tpArtist":
       mv = CurrentArtist;
       break;
     case "tpAlbum":
       mv = CurrentAlbum;
       break;
     case "tpTrack":
       mv = CurrentTrack;
       break;
       }
       if (mv == null || mv.ArtFullPath.Trim().Length == 0 || !File.Exists(mv.ArtFullPath))
     return;
       ArtPopup popup = new ArtPopup(mv.ArtFullPath);
       popup.Owner = this.ParentForm;
       popup.ShowDialog();
 }
Exemple #2
0
        /// <summary>
        /// Allow grabbing of fram from actual video
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loadArtFromMusicVideoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string artFolder = mvCentralCore.Settings.TrackArtFolder;
              string safeName = CurrentTrack.Track.Replace(' ', '.').ToValidFilename();
              string filename1 = artFolder + "\\{" + safeName + "} [" + safeName.GetHashCode() + "].jpg";
              string tempFilename = Path.Combine(Path.GetTempPath(), "mvCentralGrabImage.jpg");

              FrameGrabber fr = new FrameGrabber();
              fr.GrabFrame(CurrentTrack.LocalMedia[0].File.FullName, tempFilename, 10);
              mvCentralUtils.ResizeImageWithAspect(tempFilename, filename1, 600);
              ArtPopup popup1 = new ArtPopup(filename1);
              popup1.Owner = this.ParentForm;
              popup1.ShowDialog();
              CurrentTrack.AlternateArts.Add(filename1);
        }