Changes which allow images to be resized by Mir and saved in the filesystem if an...
[mir.git] / source / mir / media / image / ImageProcessor.java
index 6d2700d..7ed0983 100755 (executable)
@@ -30,38 +30,40 @@ import mir.media.MediaExc;
 
 import java.io.File;
 import java.io.OutputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
 
 public interface ImageProcessor {
-  void descaleImage(int aMaxSize) throws MediaExc;
+  public void descaleImage(int aMaxSize) throws MediaExc;
 
-  void descaleImage(int aMaxSize, float aMinDescale) throws MediaExc;
+  public void descaleImage(int aMaxSize, float aMinDescale) throws MediaExc;
 
-  void descaleImage(int aMaxSize, int aMinResize) throws MediaExc;
+  public void descaleImage(int aMaxSize, int aMinResize) throws MediaExc;
 
-  void descaleImage(int aMaxSize, float aMinDescale, int aMinResize) throws MediaExc;
+  public void descaleImage(int aMaxSize, float aMinDescale, int aMinResize) throws MediaExc;
 
   /**
    * Resizes an image to fit inside <code>aMaxWidth</code> and <code>aMaxHeight</code>, provided
    *    this requires at least <code>aMinResize</code> pixels will be removed from either the width or
    *    the height
    */
-  void descaleImage(int aMaxWidth, int aMaxHeight, float aMinDescale, int aMinResize) throws MediaExc;
+  public void descaleImage(int aMaxWidth, int aMaxHeight, float aMinDescale, int aMinResize) throws MediaExc;
 
-  void scaleImage(float aScalingFactor) throws MediaExc;
+  public void scaleImage(float aScalingFactor) throws MediaExc;
 
-  int getWidth();
-  int getHeight();
-  int getScaledWidth();
-  int getScaledHeight();
-  void writeScaledData(OutputStream aStream, String anImageType) throws MediaExc, IOException;
-  void writeScaledData(File aFile, String anImageType) throws MediaExc, IOException, FileNotFoundException;
+  public int getWidth();
+  public int getHeight();
+  public int getSourceFileSize();
+  public int getScaledFileSize();
+  public int getScaledWidth();
+  public int getScaledHeight();
+  public void writeScaledData(OutputStream aStream, String anImageType) 
+    throws MediaExc;
+  public byte[] getScaledData(String anImageType) throws MediaExc;
+  public void writeScaledData(File aFile, String anImageType) throws MediaExc;
 
   /**
    * call this when you're over using this object (removes temp files)
    */
-  void cleanup();
+  public void cleanup();
 }