Dekoh platform API

dekoh.portal.fwk.image
Interface ImageResizer

All Known Implementing Classes:
AbstractImageResizer, FastImageResizer, MultistepSmoothImageResizer

public interface ImageResizer

Abstraction interface for resizing images. The implementation class could be optimized for speed or quality or image type etc.

Since:
Jan 3, 2007

Field Summary
static float DEFAULT_COMPRESSION_QUALITY
          The default compression quality
 
Method Summary
 void resize(File infile, File outfile, float compressionQuality, int maxWidth, int maxHeight)
          Read an image from the input file, resize the image and write it to the destination file.
 void resize(File infile, File outfile, float compressionQuality, int maxWidth, int maxHeight, boolean square)
          Read an image from the input file, resize the image and write it to the destination file.
 void resize(File infile, File outfile, float compressionQuality, int maxWidth, int maxHeight, boolean square, EXIFOrientation photoOrientation)
          Read an image from the input file, resize the image and write it to the destination file.
 

Field Detail

DEFAULT_COMPRESSION_QUALITY

static final float DEFAULT_COMPRESSION_QUALITY
The default compression quality

See Also:
Constant Field Values
Method Detail

resize

void resize(File infile,
            File outfile,
            float compressionQuality,
            int maxWidth,
            int maxHeight)
            throws IOException
Read an image from the input file, resize the image and write it to the destination file. Similar to ImageResizer.resize(java.io.File,java.io.File,float,int,int,boolean,EXIFOrientation) with default value of square as false.

Throws:
IOException

resize

void resize(File infile,
            File outfile,
            float compressionQuality,
            int maxWidth,
            int maxHeight,
            boolean square)
            throws IOException
Read an image from the input file, resize the image and write it to the destination file. Can optionally crop the image to a square.

Throws:
IOException

resize

void resize(File infile,
            File outfile,
            float compressionQuality,
            int maxWidth,
            int maxHeight,
            boolean square,
            EXIFOrientation photoOrientation)
            throws IOException
Read an image from the input file, resize the image and write it to the destination file. Can optionally crop the image to a square. Can compensate for an exif orientation in the photo ie the image will be rotated/mirrored to look right.

Throws:
IOException

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers