static private Media _createPictureMedia(string fileName, TagLib.File file) { PictureMedia media = new PictureMedia(); Image picture = Image.FromFile(fileName); media.MediaType = t_MediaType.PICTURE; media.Width = picture.Width; media.Height = picture.Height; media.Title = Path.GetFileNameWithoutExtension(fileName); return(media); }
public void FillModel(PictureMedia media) { Title = media.Title; Width = media.Width; Height = media.Height; }
private static Media _createPictureMedia(string fileName, TagLib.File file) { PictureMedia media = new PictureMedia(); Image picture = Image.FromFile(fileName); media.MediaType = t_MediaType.PICTURE; media.Width = picture.Width; media.Height = picture.Height; media.Title = Path.GetFileNameWithoutExtension(fileName); return media; }