001 package jmaster.jumploader.model.api.upload;
002
003
004 /**
005 * IImageInfo
006 *
007 * @author timur
008 */
009
010 public interface IImageInfo {
011 //---------------------------------------------------------------
012 // constants
013 //---------------------------------------------------------------
014 //---------------------------------------------------------------
015 // business methods
016 //---------------------------------------------------------------
017 /**
018 * error retrieval occured while image info fetching
019 */
020 Exception getError();
021 /**
022 * image format retrieval (jpg, png, bmp, tiff, gif etc.)
023 */
024 String getFormat();
025 /**
026 * retrieve number of images
027 */
028 int getNumImages();
029 /**
030 * retrieve width of specified image
031 */
032 int getImageWidth(int imageIndex);
033 /**
034 * retrieve height of specified image
035 */
036 int getImageHeight(int imageIndex);
037 /**
038 * retrieve number of thumbnails of specified image
039 */
040 int getImageNumThumbnails(int imageIndex);
041 }