public class BrandedPreviewJPEGFilter extends MediaFilter
| Constructor and Description |
|---|
BrandedPreviewJPEGFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getBlurredInstance(java.awt.image.BufferedImage buf) |
java.lang.String |
getBundleName() |
java.lang.String |
getDescription() |
java.io.InputStream |
getDestinationStream(java.io.InputStream source) |
java.lang.String |
getFilteredName(java.lang.String oldFilename)
Get a filename for a newly created filtered bitstream
|
java.lang.String |
getFormatString() |
java.awt.image.BufferedImage |
getNormalizedInstance(java.awt.image.BufferedImage buf) |
java.awt.image.BufferedImage |
getScaledInstance(java.awt.image.BufferedImage buf,
int targetWidth,
int targetHeight,
java.lang.Object hint,
boolean higherQuality)
Convenience method that returns a scaled instance of the
provided
BufferedImage. |
postProcessBitstream, preProcessBitstreampublic java.lang.String getFilteredName(java.lang.String oldFilename)
FormatFilteroldFilename - name of source bitstreampublic java.lang.String getBundleName()
public java.lang.String getFormatString()
public java.lang.String getDescription()
public java.io.InputStream getDestinationStream(java.io.InputStream source)
throws java.lang.Exception
source - source input streamjava.lang.Exceptionpublic java.awt.image.BufferedImage getNormalizedInstance(java.awt.image.BufferedImage buf)
public java.awt.image.BufferedImage getBlurredInstance(java.awt.image.BufferedImage buf)
public java.awt.image.BufferedImage getScaledInstance(java.awt.image.BufferedImage buf,
int targetWidth,
int targetHeight,
java.lang.Object hint,
boolean higherQuality)
BufferedImage.buf - the original image to be scaledtargetWidth - the desired width of the scaled instance,
in pixelstargetHeight - the desired height of the scaled instance,
in pixelshint - one of the rendering hints that corresponds to
RenderingHints.KEY_INTERPOLATION (e.g.
RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,
RenderingHints.VALUE_INTERPOLATION_BILINEAR,
RenderingHints.VALUE_INTERPOLATION_BICUBIC)higherQuality - if true, this method will use a multi-step
scaling technique that provides higher quality than the usual
one-step technique (only useful in downscaling cases, where
targetWidth or targetHeight is
smaller than the original dimensions, and generally only when
the BILINEAR hint is specified)BufferedImageCopyright © 2013 DuraSpace. All Rights Reserved.