org.mycore.services.imaging
Class MCRImgService

java.lang.Object
  extended by org.mycore.services.imaging.MCRImgService

public class MCRImgService
extends Object


Nested Class Summary
static class MCRImgService.ScaleMode
           
 
Field Summary
protected  int format
           
 int IMAGE
           
protected  float scaleFactor
           
 int THUMBNAIL
           
protected  boolean USE_CACHE
           
 
Constructor Summary
MCRImgService()
           
 
Method Summary
 void getImage(MCRFile image, int xTopPos, int yTopPos, int boundWidth, int boundHeight, float scaleFactor, OutputStream output)
           
 void getImage(MCRFile image, int xTopPos, int yTopPos, int boundWidth, int boundHeight, OutputStream output)
           
 void getImage(MCRFile image, int newWidth, int newHeight, OutputStream output, MCRImgService.ScaleMode scaleMode)
           
 float getScaleFactor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUMBNAIL

public final int THUMBNAIL
See Also:
Constant Field Values

IMAGE

public final int IMAGE
See Also:
Constant Field Values

scaleFactor

protected float scaleFactor

USE_CACHE

protected boolean USE_CACHE

format

protected int format
Constructor Detail

MCRImgService

public MCRImgService()
Method Detail

getImage

public void getImage(MCRFile image,
                     int newWidth,
                     int newHeight,
                     OutputStream output,
                     MCRImgService.ScaleMode scaleMode)
              throws IOException
Throws:
IOException

getImage

public void getImage(MCRFile image,
                     int xTopPos,
                     int yTopPos,
                     int boundWidth,
                     int boundHeight,
                     OutputStream output)
              throws IOException
Throws:
IOException

getImage

public void getImage(MCRFile image,
                     int xTopPos,
                     int yTopPos,
                     int boundWidth,
                     int boundHeight,
                     float scaleFactor,
                     OutputStream output)
              throws IOException
Throws:
IOException

getScaleFactor

public float getScaleFactor()