Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.picture.core.im
Class IMImageUtils

java.lang.Object
  extended by org.nuxeo.ecm.platform.picture.core.im.IMImageUtils
All Implemented Interfaces:
ImageUtils

public class IMImageUtils
extends Object
implements ImageUtils

Author:
Laurent Doguin

Constructor Summary
IMImageUtils()
           
 
Method Summary
 Blob crop(Blob blob, int x, int y, int width, int height)
           
 InputStream crop(InputStream in, int x, int y, int width, int height)
          Deprecated. 
 boolean isAvailable()
          Returns true if this ImageUtils can be used, false otherwise
 Blob resize(Blob blob, String finalFormat, int width, int height, int depth)
           
 InputStream resize(InputStream in, int width, int height)
          Deprecated. 
 Blob rotate(Blob blob, int angle)
           
 InputStream rotate(InputStream in, int angle)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMImageUtils

public IMImageUtils()
Method Detail

crop

@Deprecated
public InputStream crop(InputStream in,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
Deprecated. 

Specified by:
crop in interface ImageUtils

resize

@Deprecated
public InputStream resize(InputStream in,
                                     int width,
                                     int height)
Deprecated. 

Specified by:
resize in interface ImageUtils

rotate

@Deprecated
public InputStream rotate(InputStream in,
                                     int angle)
Deprecated. 

Specified by:
rotate in interface ImageUtils

crop

public Blob crop(Blob blob,
                 int x,
                 int y,
                 int width,
                 int height)
Specified by:
crop in interface ImageUtils

resize

public Blob resize(Blob blob,
                   String finalFormat,
                   int width,
                   int height,
                   int depth)
Specified by:
resize in interface ImageUtils

rotate

public Blob rotate(Blob blob,
                   int angle)
Specified by:
rotate in interface ImageUtils

isAvailable

public boolean isAvailable()
Description copied from interface: ImageUtils
Returns true if this ImageUtils can be used, false otherwise

Specified by:
isAvailable in interface ImageUtils

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.