thumb() публичный Метод

public thumb ( ) : byte[]
Результат byte[]
Пример #1
0
 public Dictionary <string, object> getThumb(ExifParser exifParser)
 {
     byte[] thumb = exifParser.thumb();
     if (thumb != null)
     {
         BinaryReader             br        = new BinaryReader(new MemoryStream(thumb));
         Dictionary <string, int> thumbInfo = info(br);
         br.clear();
         if (thumbInfo != null)
         {
             return(new Dictionary <string, object>()
             {
                 { "width", thumbInfo["width"] },
                 { "height", thumbInfo["height"] },
                 { "data", thumb }
             });
         }
     }
     return(null);
 }
Пример #2
0
 public Dictionary<string, object> getThumb(ExifParser exifParser)
 {
     byte[] thumb = exifParser.thumb();
     if (thumb != null)
     {
         BinaryReader br = new BinaryReader(new MemoryStream(thumb));
         Dictionary<string, int> thumbInfo = info(br);
         br.clear();
         if (thumbInfo != null)
         {
             return new Dictionary<string, object>()
             {
                 { "width", thumbInfo["width"] },
                 { "height", thumbInfo["height"] },
                 { "data", thumb }
             };
         }
     }
     return null;
 }