info.magnolia.imaging.operations.load
Class AbstractLoader<P extends ParameterProvider<?>>
java.lang.Object
info.magnolia.imaging.operations.load.AbstractLoader<P>
- Type Parameters:
P
- type of ParameterProvider's parameter
- All Implemented Interfaces:
- ImageOperation<P>
- Direct Known Subclasses:
- AbstractFromContent, AbstractFromNode, AbstractURLImageLoader
public abstract class AbstractLoader<P extends ParameterProvider<?>>
- extends Object
- implements ImageOperation<P>
An abstract ImageOperation used to load images. It takes charge of converting the loaded image
to the appropriate type. (ImageIO.read() will return a different image type depending on the
source format). Overhead is negligible.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoader
protected AbstractLoader()
AbstractLoader
protected AbstractLoader(Color backgroundColor)
apply
public BufferedImage apply(BufferedImage source,
P filterParams)
throws ImagingException
- Specified by:
apply
in interface ImageOperation<P extends ParameterProvider<?>>
- Throws:
ImagingException
loadSource
protected abstract BufferedImage loadSource(P filterParams)
throws ImagingException
- Throws:
ImagingException
doReadAndClose
protected BufferedImage doReadAndClose(InputStream inputStream)
throws IOException,
ImagingException
- Throws:
IOException
ImagingException
getImageDecoder
public ImageDecoder getImageDecoder()
setImageDecoder
public void setImageDecoder(ImageDecoder imageDecoder)
getBackgroundColor
public Color getBackgroundColor()
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.