public class DefaultOpenXmlThumbnailPolicyFilter extends AbstractThumbnailPolicyFilterImpl
REVISION
order
Constructor and Description |
---|
DefaultOpenXmlThumbnailPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
createThumbnail(FileDocument doc,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean square,
boolean done)
This method is a hook called by Thumbnail tag to generate a
thumbnail of the given FileDocument.
|
createThumbnail, createThumbnail, isValidImageSize, supportsThumbnail
createThumbnail, createThumbnail, createThumbnail, createThumbnail, createThumbnail, createThumbnail, init, isValidImageSize, supportsThumbnail
compareTo, equals, getOrder, setOrder
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, getName, init, isInitialized
public boolean createThumbnail(FileDocument doc, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean square, boolean done)
ThumbnailPolicyFilter
createThumbnail
in interface ThumbnailPolicyFilter
createThumbnail
in class AbstractThumbnailPolicyFilterImpl
doc
- FileDocument of which to create a thumbnaildest
- destination file (the thumbnail to generate)format
- the format of the file to generate as requested by the ThumbnailTagmaxWidth
- the maximum width of the thumbnail to generatemaxHeight
- the maximum height of the thumbnail to generatebackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeightsquare
- set to true to crop image into a square using the specified width during thumbnail creation.done
- the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(FileDocument, File, ImageFormat, int, int, String, boolean, boolean)
Copyright © 2001-2021 Jalios SA. All Rights Reserved.