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;
 }