public static string GetExtensionByMediaType(EPUBImageTypeEnum imageType) { switch (imageType) { case EPUBImageTypeEnum.ImageGIF: return "gif"; case EPUBImageTypeEnum.ImageJPG: return "jpeg"; case EPUBImageTypeEnum.ImagePNG: return "png"; case EPUBImageTypeEnum.ImageSVG: return "svg"; } throw new Exception("unknown image type passed"); }
public static EPubCoreMediaType ConvertImageTypeToMediaType(EPUBImageTypeEnum imageType) { switch (imageType) { case EPUBImageTypeEnum.ImageGIF: return EPubCoreMediaType.ImageGif; case EPUBImageTypeEnum.ImageJPG: return EPubCoreMediaType.ImageJpeg; case EPUBImageTypeEnum.ImagePNG: return EPubCoreMediaType.ImagePng; case EPUBImageTypeEnum.ImageSVG: return EPubCoreMediaType.ImageSvgXml; } throw new Exception("unknown image type passed"); }
public static string GetExtensionByMediaType(EPUBImageTypeEnum imageType) { switch (imageType) { case EPUBImageTypeEnum.ImageGIF: return("gif"); case EPUBImageTypeEnum.ImageJPG: return("jpeg"); case EPUBImageTypeEnum.ImagePNG: return("png"); case EPUBImageTypeEnum.ImageSVG: return("svg"); } throw new Exception("unknown image type passed"); }
public static EPubCoreMediaType ConvertImageTypeToMediaType(EPUBImageTypeEnum imageType) { switch (imageType) { case EPUBImageTypeEnum.ImageGIF: return(EPubCoreMediaType.ImageGif); case EPUBImageTypeEnum.ImageJPG: return(EPubCoreMediaType.ImageJpeg); case EPUBImageTypeEnum.ImagePNG: return(EPubCoreMediaType.ImagePng); case EPUBImageTypeEnum.ImageSVG: return(EPubCoreMediaType.ImageSvgXml); } throw new Exception("unknown image type passed"); }
public ImageOnStorage(string id, EPUBImageTypeEnum type) { _id = id; _imageType = type; }
public ImageOnStorage(EPUBImage eImage) { _id = eImage.ID; _imageType = eImage.ImageType; }