|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglass.eclipse.theme.utils.CGraphicUtils
public class CGraphicUtils
CGraphicUtils.java Thomas Hilbert 20.09.2009
Constructor Summary | |
---|---|
CGraphicUtils()
|
Method Summary | |
---|---|
static BufferedImage |
addPhotoBorder(BufferedImage src,
int outer,
int inner,
Color colOuter,
Color colInner)
Adds a two colored border to the given image. |
static BufferedImage |
CreateThumb(BufferedImage img,
int thumbSize)
Creates a thumb of the specified image with the given thumb size. |
static BufferedImage |
getScaledInstance(BufferedImage img,
int destw,
int desth,
Object hint)
Gets a scaled instance of the source image. |
static Shape |
MergeClipShapes(Shape destination,
Shape currentClip)
Merges the specified shapes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CGraphicUtils()
Method Detail |
---|
public static BufferedImage getScaledInstance(BufferedImage img, int destw, int desth, Object hint)
img
- destw
- Target width, -1 if width should be in correct aspect ratio to target height.desth
- Target height, -1 if height should be in correct aspect ratio to target width.hint
- See RenderingHints.VALUE_INTERPOLATION_XXX
public static BufferedImage addPhotoBorder(BufferedImage src, int outer, int inner, Color colOuter, Color colInner)
src
- outer
- inner
- colOuter
- colInner
-
public static BufferedImage CreateThumb(BufferedImage img, int thumbSize)
img
- thumbSize
-
public static Shape MergeClipShapes(Shape destination, Shape currentClip)
destination
and currentClip
destination
- currentClip
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |