예제 #1
0
 private static bool LegalFormat(Texture2D texture)
 {
     return(AllowedFormats.Contains(texture.Format));
 }
예제 #2
0
 public static bool IsImage(string contentType)
 {
     return(AllowedFormats.Any(format => contentType.EndsWith(format,
                                                              StringComparison.OrdinalIgnoreCase)));
 }