|
||||||||||
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 java.awt.image.BufferedImage |
addPhotoBorder(java.awt.image.BufferedImage src,
int outer,
int inner,
java.awt.Color colOuter,
java.awt.Color colInner)
Adds a two colored border to the given image. |
static java.awt.image.BufferedImage |
CreateThumb(java.awt.image.BufferedImage img,
int thumbSize)
Creates a thumb of the specified image with the given thumb size. |
static java.awt.image.BufferedImage |
getScaledInstance(java.awt.image.BufferedImage img,
int destw,
int desth,
java.lang.Object hint)
Gets a scaled instance of the source image. |
static java.awt.Shape |
MergeClipShapes(java.awt.Shape destination,
java.awt.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 java.awt.image.BufferedImage getScaledInstance(java.awt.image.BufferedImage img, int destw, int desth, java.lang.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 java.awt.image.BufferedImage addPhotoBorder(java.awt.image.BufferedImage src, int outer, int inner, java.awt.Color colOuter, java.awt.Color colInner)
src
- outer
- inner
- colOuter
- colInner
-
public static java.awt.image.BufferedImage CreateThumb(java.awt.image.BufferedImage img, int thumbSize)
img
- thumbSize
-
public static java.awt.Shape MergeClipShapes(java.awt.Shape destination, java.awt.Shape currentClip)
destination
and currentClip
destination
- currentClip
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |