Exemple #1
0
 /// <summary>
 /// Check if the type of image located at the passed is supported by the
 /// <see cref="iText.IO.Image.ImageDataFactory"/>
 /// </summary>
 /// <param name="src">location of the image resource</param>
 /// <returns>true if the image type is supported, false otherwise</returns>
 public virtual bool IsImageTypeSupportedByImageDataFactory(String src)
 {
     try {
         Uri url = uriResolver.ResolveAgainstBaseUri(src);
         url = UrlUtil.GetFinalURL(url);
         return(ImageDataFactory.IsSupportedType(url));
     }
     catch (Exception) {
         return(false);
     }
 }