de.grogra.imp3d.anaglyph
public class ImageTool extends java.lang.Object
http://atoks.bplaced.net| Modifier and Type | Field and Description |
|---|---|
static int[] |
ANAGLYPH_LIST |
static int |
ANAGLYPH_RAD_BLUE_COLOR |
static int |
ANAGLYPH_RAD_BLUE_GRAY |
static int |
ANAGLYPH_RAD_CYAN_COLOR |
static int |
ANAGLYPH_RAD_CYAN_GRAY |
static int |
ANAGLYPH_RAD_GREEN_COLOR |
static int |
ANAGLYPH_RAD_GREEN_GRAY |
static int |
ANAGLYPH_YELLOW_BLUE_COLOR |
static int |
ANAGLYPH_YELLOW_BLUE_GRAY |
| Constructor and Description |
|---|
ImageTool() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
adaptImage(java.awt.image.BufferedImage img,
int width,
int height)
Methode Aendert bild Groesse so das Proportionen werde beibechalten
|
static java.awt.image.BufferedImage |
addWatermarkToImage(java.awt.image.BufferedImage img,
java.awt.image.BufferedImage watermark,
int x,
int y,
float transperancy)
Methode fuegt ein Wasserzeichen zu Hauptbild
|
static java.awt.image.BufferedImage |
cutPartOfImage(java.awt.image.BufferedImage img,
int x,
int y,
int width,
int height)
Methode schneidet eine Teil von Bild aus
|
static java.awt.image.BufferedImage |
getAnaglyphImage(java.awt.image.BufferedImage left,
java.awt.image.BufferedImage right,
double[][] leftMatrix,
double[][] rightMatrix)
Methode erstelt eine Anaglyphbild
|
static java.awt.image.BufferedImage |
getAnaglyphImage(java.awt.image.BufferedImage left,
java.awt.image.BufferedImage right,
int anaglyph_type)
Methode erstelt eine Anaglyphbild
|
static java.awt.image.BufferedImage |
getBufferedImage(java.io.InputStream is)
Methode gibt eine BufferedImage aus InputStream
|
static java.awt.image.BufferedImage |
getBufferedImage(java.lang.String str)
Methode gibt eine BufferedImage aus String adresse.
|
static java.awt.image.BufferedImage |
getBufferedImage(java.net.URL url)
Methode gibt eine BufferedImage aus URL
|
static java.awt.image.BufferedImage |
getGrayImage(java.awt.image.BufferedImage img)
Methode wandelt Bild in graue Stuffen
|
static java.awt.image.BufferedImage |
inverseColor(java.awt.image.BufferedImage img)
Methode kehrt Ausgangsfarbenwerte um
|
static java.awt.image.BufferedImage |
makeTransparentImage(java.awt.image.BufferedImage img,
float transperancy)
Methode macht Bild duerchsichtig
|
static java.awt.image.BufferedImage |
reflectHorizontalImage(java.awt.image.BufferedImage img)
Methode spigeld Bild Horizontal
|
static java.awt.image.BufferedImage |
reflectVerticalImage(java.awt.image.BufferedImage img)
Methode spigeld Bild Vertikal
|
static java.awt.image.BufferedImage |
replaceColor(java.awt.image.BufferedImage img,
java.awt.Color mask,
java.awt.Color replacement,
double digression)
Methode ersetzt Farben
|
static java.awt.image.BufferedImage |
resizeImage(java.awt.image.BufferedImage img,
int width,
int height)
Methode Aendert bild Groesse
|
static java.awt.image.BufferedImage |
rotateImage(java.awt.image.BufferedImage img,
double degree)
Methode dreht Bild in degree Grad rum
|
public static final int[] ANAGLYPH_LIST
public static final int ANAGLYPH_RAD_BLUE_COLOR
public static final int ANAGLYPH_RAD_BLUE_GRAY
public static final int ANAGLYPH_RAD_CYAN_COLOR
public static final int ANAGLYPH_RAD_CYAN_GRAY
public static final int ANAGLYPH_RAD_GREEN_COLOR
public static final int ANAGLYPH_RAD_GREEN_GRAY
public static final int ANAGLYPH_YELLOW_BLUE_COLOR
public static final int ANAGLYPH_YELLOW_BLUE_GRAY
public static java.awt.image.BufferedImage adaptImage(java.awt.image.BufferedImage img,
int width,
int height)
throws ImageToolException
img - Bildquellewidth - Breite an welche Bild adaptiert werden mussheight - Hoehe an welche Bild adaptiert werden mussImageToolExceptionpublic static java.awt.image.BufferedImage addWatermarkToImage(java.awt.image.BufferedImage img,
java.awt.image.BufferedImage watermark,
int x,
int y,
float transperancy)
img - Hauptbildquellewatermark - Wasserzeichenquellex - X-Position an welche mus Wasserzeichen gesetzt werdeny - Y-Position an welche mus Wasserzeichen gesetzt werdentransperancy - Duersichtlichkeit von Wasserzeichenpublic static java.awt.image.BufferedImage cutPartOfImage(java.awt.image.BufferedImage img,
int x,
int y,
int width,
int height)
img - Bildquellex - Startposition Xy - Startposition Ywidth - Breite von Ausschnitheight - Hoehe von Ausschnitpublic static java.awt.image.BufferedImage getAnaglyphImage(java.awt.image.BufferedImage left,
java.awt.image.BufferedImage right,
double[][] leftMatrix,
double[][] rightMatrix)
throws ImageToolException
left - Linkebildright - RechtebildleftMatrix - Multiplexer fuer linke BildrightMatrix - Multiplexer fuer rechte BildImageToolExceptionpublic static java.awt.image.BufferedImage getAnaglyphImage(java.awt.image.BufferedImage left,
java.awt.image.BufferedImage right,
int anaglyph_type)
left - Linkebildright - Rechtebildanaglyph_type - Typ von Anaglyphbildpublic static java.awt.image.BufferedImage getBufferedImage(java.io.InputStream is)
throws ImageToolException
is - InputStream mit ImageImageToolExceptionpublic static java.awt.image.BufferedImage getBufferedImage(java.lang.String str)
throws ImageToolException
str - String welche wird als Parameter fuer File genomenImageToolExceptionpublic static java.awt.image.BufferedImage getBufferedImage(java.net.URL url)
throws ImageToolException
url - URL mit ImageImageToolExceptionpublic static java.awt.image.BufferedImage getGrayImage(java.awt.image.BufferedImage img)
img - Bildquellepublic static java.awt.image.BufferedImage inverseColor(java.awt.image.BufferedImage img)
img - Bildquellepublic static java.awt.image.BufferedImage makeTransparentImage(java.awt.image.BufferedImage img,
float transperancy)
img - Bildquelletransperancy - Duersichtigkeitstaerkepublic static java.awt.image.BufferedImage reflectHorizontalImage(java.awt.image.BufferedImage img)
img - Bildquellepublic static java.awt.image.BufferedImage reflectVerticalImage(java.awt.image.BufferedImage img)
img - Bildquellepublic static java.awt.image.BufferedImage replaceColor(java.awt.image.BufferedImage img,
java.awt.Color mask,
java.awt.Color replacement,
double digression)
img - Bildquellemask - Welche Farbe ersetzt werden mussreplacement - Mit welche Farbe ersetzt werden mussdigression - Abweichung in % Diference zu "mask"public static java.awt.image.BufferedImage resizeImage(java.awt.image.BufferedImage img,
int width,
int height)
img - Bildquellewidth - Neue Breiteheight - Neue Hoehepublic static java.awt.image.BufferedImage rotateImage(java.awt.image.BufferedImage img,
double degree)
img - Bildquelledegree - Rotationsgrad