Beispiel #1
0
 public static bool Check(System.IO.Stream inputStream, out string contentType, out int width, out int height)
 {
     ImageMetadata imageMetadata = new ImageMetadata(inputStream);
     if (imageMetadata.Check())
     {
         contentType = imageMetadata.MimeType;
         width = imageMetadata.Width;
         height = imageMetadata.Height;
         return true;
     }
     contentType = string.Empty;
     width = 0;
     height = 0;
     return false;
 }