public class ThumbnailImageResource extends DynamicImageResource
AbstractResource.ResourceResponse, AbstractResource.WriteCallbackIResource.AttributesINTERNAL_HEADERS| Constructor and Description |
|---|
ThumbnailImageResource(IResource unscaledImageResource,
int maxSize)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getImageData(IResource.Attributes attributes) |
protected BufferedImage |
getScaledImageInstance(IResource.Attributes attributes)
get resized image instance.
|
configureResponse, getFormat, newResourceResponse, setFormat, setLastModifiedTime, toImageDataconfigureCache, getCachingStrategy, respond, setResponseHeaderspublic ThumbnailImageResource(IResource unscaledImageResource, int maxSize)
unscaledImageResource - the unscaled, original image resource. Must be not nullmaxSize - maximum size (width or height) for resize operationprotected byte[] getImageData(IResource.Attributes attributes)
getImageData in class DynamicImageResourceprotected BufferedImage getScaledImageInstance(IResource.Attributes attributes)
attributes - Copyright © 2006–2015 Apache Software Foundation. All rights reserved.