|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.datadosen.util.GraphicsUtilities
public class GraphicsUtilities
| Constructor Summary | |
|---|---|
GraphicsUtilities()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
getFasterScaledInstance(java.awt.image.BufferedImage img,
int targetWidth,
int targetHeight,
java.lang.Object hint,
boolean progressiveBilinear)
Convenience method that returns a scaled instance of the provided BufferedImage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphicsUtilities()
| Method Detail |
|---|
public static java.awt.image.BufferedImage getFasterScaledInstance(java.awt.image.BufferedImage img,
int targetWidth,
int targetHeight,
java.lang.Object hint,
boolean progressiveBilinear)
img - 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)progressiveBilinear - if true, this method will use a multi-step
scaling technique that provides higher quality than the usual
one-step technique (only useful in down-scaling cases, where
targetWidth or targetHeight is
smaller than the original dimensions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||