ImageIOImageProcessor Class Reference

Inherits er::attachment::thumbnail::ERImageProcessor.

Collaboration diagram for ImageIOImageProcessor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void processImage (int resizeWidth, int resizeHeight, Quality resizeQuality, int dpi, float sharpenRadius, float sharpenIntensity, float gamma, int cropX, int cropY, int cropWidth, int cropHeight, File watermarkFile, boolean tileWatermark, float compressionQuality, File colorProfileFile, File inputFile, File outputFile, ERMimeType outputMimeType) throws IOException
String toString ()

Static Public Member Functions

static IERImageProcessor imageIOImageProcessor ()

Static Package Functions

 [static initializer]

Private Member Functions

native boolean processImage (int resizeWidth, int resizeHeight, int dpi, float sharpenRadius, float sharpenIntensity, float gamma, int cropX, int cropY, int cropWidth, int cropHeight, float compressionQuality, String profilePath, String inputFile, String outputFile, String uti)
native boolean processImage2 (int resizeWidth, int resizeHeight, int dpi, float sharpenRadius, float sharpenIntensity, float gamma, int cropX, int cropY, int cropWidth, int cropHeight, String watermarkFile, boolean tileWatermark, float compressionQuality, String profilePath, String inputFile, String outputFile, String uti)


Detailed Description

ImageIOImageProcessor is an implementation of the IImageProcessor interface on top of Mac OS X's ImageIO and CoreImage libraries. This is, by far, the fastest implementation of image processing provided. To use this implementation, you must build the native ImageIOImageProcessor.jnilib provided in the Native/MacOSX/ImageIOImageProcessor xcode project and place the library in your JNI library path (for example, /Library/Java/Extensions).

Author:
mschrag

Member Function Documentation

[static initializer] (  )  [static, package]

static IERImageProcessor imageIOImageProcessor (  )  [static]

native boolean processImage ( int  resizeWidth,
int  resizeHeight,
int  dpi,
float  sharpenRadius,
float  sharpenIntensity,
float  gamma,
int  cropX,
int  cropY,
int  cropWidth,
int  cropHeight,
float  compressionQuality,
String  profilePath,
String  inputFile,
String  outputFile,
String  uti 
) [private]

void processImage ( int  resizeWidth,
int  resizeHeight,
Quality  resizeQuality,
int  dpi,
float  sharpenRadius,
float  sharpenIntensity,
float  gamma,
int  cropX,
int  cropY,
int  cropWidth,
int  cropHeight,
File  watermarkFile,
boolean  tileWatermark,
float  compressionQuality,
File  colorProfileFile,
File  inputFile,
File  outputFile,
ERMimeType  outputMimeType 
) throws IOException

Processes the given image with all of the given configuration settings.

Order: resize/dpi, colorspace, crop, sharpen, gamma, watermark

Parameters:
resizeWidth the maximum width to resize to (or -1 to not specify)
resizeHeight the maximum height to resize to (or -1 to not specify)
resizeQuality influences the resize algorithm to use (or null to not specify)
dpi the dpi to resize to (or -1 to skip)
sharpenRadius the radius of the unsharp mask (or <= 0.0 to skip)
sharpenIntensity the intensity of the unsharp mask (or <= 0.0 to skip)
gamma the gamma to apply (or 0.0 to skip)
cropX the x position of the crop (or <= 0 to skip)
cropY the y position of the crop (or <= 0 to skip)
cropWidth the width of the crop (or <= 0 to skip)
cropHeight the height of the crop (or <= 0 to skip)
watermarkFile the watermark File to apply to this image (or null to skip)
tileWatermark whether or not to tile the watermark
compressionQuality the compression quality of the resize to perform (0.0 to ignore) -- range is 0.0 to 1.0 (1.0 = best)
colorProfileFile the ICC profile to use (or null to skip)
inputFile the File to perform the given operations on
outputFile the File to write the resulting output image to
outputMimeType the desired mime type of the output file
Exceptions:
IOException if the image processing fails

Implements IERImageProcessor.

native boolean processImage2 ( int  resizeWidth,
int  resizeHeight,
int  dpi,
float  sharpenRadius,
float  sharpenIntensity,
float  gamma,
int  cropX,
int  cropY,
int  cropWidth,
int  cropHeight,
String  watermarkFile,
boolean  tileWatermark,
float  compressionQuality,
String  profilePath,
String  inputFile,
String  outputFile,
String  uti 
) [private]

String toString (  ) 


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:42 2012 for Project Wonder by  doxygen 1.5.8