|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.SP.IP.Filter
public final class Filter
This class contains some useful methods used in image processing.
| Constructor Summary | |
|---|---|
Filter()
|
|
| Method Summary | |
|---|---|
static java.awt.Image |
bwFilter(java.awt.Image img,
java.awt.Component c)
black and white filter an image with a media tracker in a component c |
static java.awt.Image |
crop(int x,
int y,
int w,
int h,
java.awt.Image img,
java.awt.Component c)
crop an image with a specific rectangle |
static java.awt.Image |
crop(java.awt.Rectangle rect,
java.awt.Image img,
java.awt.Component c)
crop an image with a specific rectangle |
static java.awt.Image |
dissolve(int alpha,
java.awt.Image img,
java.awt.Component c)
rgb filter an image with a media tracker in a component c |
static java.awt.Image |
load(java.awt.Image img,
java.awt.Component c)
load an image with a media tracker in a component c |
static java.awt.Image |
load(java.lang.String fileName,
java.awt.Component c)
load an image from a file with a media tracker in a component c |
static java.awt.Image |
negativeFilter(java.awt.Image img,
java.awt.Component c)
negative filter an image with a media tracker in a component c |
static java.awt.Image |
scale(double ws,
double hs,
java.awt.Image img,
java.awt.Component c)
scale an image with with a media tracker in a component c |
static java.awt.Image |
scaleColor(int r,
int g,
int b,
java.awt.Image img,
java.awt.Component c)
scale all colors in an image with a media tracker in a component c |
static java.awt.Image |
scaleColor(int p,
java.lang.String color,
java.awt.Image img,
java.awt.Component c)
scale one or all color components in the picture |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filter()
| Method Detail |
|---|
public static java.awt.Image load(java.lang.String fileName,
java.awt.Component c)
fileName - A Stringc - A Component
public static java.awt.Image load(java.awt.Image img,
java.awt.Component c)
img - An imagec - A Component
public static java.awt.Image crop(int x,
int y,
int w,
int h,
java.awt.Image img,
java.awt.Component c)
x - An integer, x positiony - An integer, y positionw - An integer, the width of the rectangleh - An integer, the height of the rectangleimg - An imagec - A Component
public static java.awt.Image crop(java.awt.Rectangle rect,
java.awt.Image img,
java.awt.Component c)
rect - A Rectangleimg - An Imagec - A Component
public static java.awt.Image scale(double ws,
double hs,
java.awt.Image img,
java.awt.Component c)
ws - A double value, the horizontal scale factorhs - A double value, the vertical scale factorimg - An imagec - A Component
public static java.awt.Image dissolve(int alpha,
java.awt.Image img,
java.awt.Component c)
alpha - An integer value, the alpha value between 0 and 255img - An imagec - A Component
public static java.awt.Image bwFilter(java.awt.Image img,
java.awt.Component c)
img - An imagec - A Component
public static java.awt.Image negativeFilter(java.awt.Image img,
java.awt.Component c)
img - An imagec - A Component
public static java.awt.Image scaleColor(int r,
int g,
int b,
java.awt.Image img,
java.awt.Component c)
r - An integer value, a red percentage between -100 and 100g - An integer value, a green percentage between -100 and 100b - An integer value, a blue percentage between -100 and 100img - An imagec - A Component
public static java.awt.Image scaleColor(int p,
java.lang.String color,
java.awt.Image img,
java.awt.Component c)
p - An integer value, the percentage of the color componentcolor - A String, the color component, "red", "green", "blue" or "all"img - An imagec - A Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||