示例#1
0
文件: Program.cs 项目: yimig/uTag
        static void Main(string[] args)
        {
            var tag = TagFactory.Load(fjp);

            Console.WriteLine("class:" + tag.GetType().Name);
            Console.WriteLine("title:" + tag.Title);
            Console.WriteLine("artist:" + tag.Artist);
            Console.WriteLine("album:" + tag.Album);
            Console.WriteLine("year:" + tag.Year);
            Console.WriteLine("format:" + tag.Format);
            Console.WriteLine("TrackID:" + tag.TrackNumber);
            Console.WriteLine("Genre:" + tag.Genre);
            MemoryStream ms    = new MemoryStream(tag.Picture);
            Image        image = Image.FromStream(ms);

            Console.WriteLine("Picture Area:" + image.Height + "*" + image.Width);
            Console.ReadLine();
        }
示例#2
0
 public MainWindow()
 {
     InitializeComponent();
     tag = TagFactory.Load(flac);
     InitControler();
 }