Пример #1
0
 /// <summary>
 /// Extracts EXIF information from a picture. NOTE: You may simulate the action.
 /// </summary>
 /// <param name="filename"></param>
 /// <returns></returns>
 public IEXIFModel ExtractEXIF(string filename)
 {
     if (!PictureExists(filename))
     {
         throw new MissingPictureException();
     }
     //return new EXIFModel()
     //{
     //    ExposureTime = 1,
     //    FNumber = 1,
     //    ISOValue = 1,
     //    Make = "Nikon I guess"
     //};
     return(MetaDataExtractor <EXIFModel> .Create(filename));
 }
Пример #2
0
        /// <summary>
        /// Extracts IPTC information from a picture. NOTE: You may simulate the action.
        /// </summary>
        /// <param name="filename"></param>
        /// <returns></returns>
        public IIPTCModel ExtractIPTC(string filename)
        {
            if (!PictureExists(filename))
            {
                throw new MissingPictureException();
            }
            //return new IPTCModel()
            //{
            //    ByLine = "But",
            //    Caption = "Can",
            //    CopyrightNotice = "You",
            //    Headline = "Do",
            //    Keywords = "This"
            //};

            return(MetaDataExtractor <IPTCModel> .Create(filename));
        }