public final class Layer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Channel |
a |
Channel |
b |
Channel |
g |
Channel |
r |
Constructor and Description |
---|
Layer(Channel r,
Channel g,
Channel b) |
Layer(Channel r,
Channel g,
Channel b,
Channel a) |
Layer(int width,
int height) |
Layer(Layer rgb,
Channel a) |
Modifier and Type | Method and Description |
---|---|
Layer |
abs() |
Layer |
add(float add) |
Layer |
add(float r,
float g,
float b) |
void |
addAlpha() |
void |
addAlpha(Channel alpha) |
Layer |
addClip(float r,
float g,
float b) |
Layer |
addClip(float r,
float g,
float b,
float a) |
Layer |
brightness(float brightness) |
Layer |
brightness(float r,
float g,
float b) |
Layer |
bump(Channel bumpmap,
float lx,
float ly,
float shadow,
float light_r,
float light_g,
float light_b,
float ambient_r,
float ambient_g,
float ambient_b) |
Layer |
bumpFast(Channel bumpmap,
float lx,
float light,
float ambient) |
Layer |
bumpSpecular(Channel bumpmap,
float lx,
float ly,
float lz,
float shadow,
float light_r,
float light_g,
float light_b,
int specular) |
Layer |
clip() |
Layer |
contrast(float contrast) |
Layer |
contrast(float r,
float g,
float b) |
Layer |
convolution(float[][] filter,
float divisor,
float offset) |
Layer |
copy() |
Layer |
crop(int x_lo,
int y_lo,
int x_hi,
int y_hi) |
Layer |
cropWrap(int x_lo,
int y_lo,
int x_hi,
int y_hi) |
void |
fill(float value) |
void |
fill(float r,
float g,
float b) |
void |
fill(float r,
float g,
float b,
float a) |
float |
findMax() |
float |
findMin() |
Layer |
flipH() |
Layer |
flipV() |
Layer |
gamma(float gamma) |
Layer |
gamma(float r,
float g,
float b) |
Layer |
gamma2() |
Layer |
gamma4() |
Layer |
gamma8() |
Channel |
getA() |
Channel |
getB() |
Channel |
getG() |
int |
getHeight() |
Channel |
getR() |
int |
getWidth() |
Layer |
grow(float r,
float g,
float b,
int radius) |
Layer |
hue(float hue) |
Layer |
hueRotation(float min,
float max,
float new_min,
float new_max) |
Layer |
invert() |
Layer |
layerAdd(Layer layer) |
Layer |
layerAverage(Layer layer) |
Layer |
layerBlend(Layer layer) |
Layer |
layerBlend(Layer rgb,
Channel a) |
Layer |
layerBlend(Layer layer,
float alpha) |
Layer |
layerBrightest(Layer layer) |
Layer |
layerDarkest(Layer layer) |
Layer |
layerDifference(Layer layer) |
Layer |
layerMultiply(Layer layer) |
Layer |
layerSubtract(Layer layer) |
Layer |
lineart() |
Layer |
multiply(float factor) |
Layer |
multiply(float r,
float g,
float b) |
Layer |
multiply(float r,
float g,
float b,
float a) |
Layer |
normalize() |
Layer |
normalize(float new_min,
float new_max) |
Layer |
normalize(float min,
float max,
float new_min,
float new_max) |
Layer |
offset(int x_offset,
int y_offset) |
Layer |
place(Layer sprite,
int x_offset,
int y_offset) |
void |
putPixel(int x,
int y,
float r,
float g,
float b) |
void |
putPixel(int x,
int y,
float r,
float g,
float b,
float a) |
void |
putPixelClip(int x,
int y,
float r,
float g,
float b) |
void |
putPixelClip(int x,
int y,
float r,
float g,
float b,
float a) |
void |
putPixelWrap(int x,
int y,
float r,
float g,
float b) |
void |
putPixelWrap(int x,
int y,
float r,
float g,
float b,
float a) |
Layer |
rotate(int degrees) |
Layer |
saturation(float saturation) |
void |
saveAsPNG(java.lang.String filename) |
Layer |
scale(int new_width,
int new_height) |
Layer |
scaleCubic(int new_width,
int new_height) |
Layer |
scaleFast(int new_width,
int new_height) |
Layer |
sharpen(int radius) |
Layer |
shear(float offset) |
Layer |
smooth(int radius) |
Layer |
threshold(float start,
float end) |
Layer |
tile(int new_width,
int new_height) |
Layer |
tileDouble() |
Layer |
toHSV() |
Layer |
toRGB() |
public final void saveAsPNG(java.lang.String filename)
public final void addAlpha()
public final void addAlpha(Channel alpha)
public final int getWidth()
public final int getHeight()
public final Channel getR()
public final Channel getG()
public final Channel getB()
public final Channel getA()
public final void putPixel(int x, int y, float r, float g, float b)
public final void putPixel(int x, int y, float r, float g, float b, float a)
public final void putPixelWrap(int x, int y, float r, float g, float b)
public final void putPixelWrap(int x, int y, float r, float g, float b, float a)
public final void putPixelClip(int x, int y, float r, float g, float b)
public final void putPixelClip(int x, int y, float r, float g, float b, float a)
public final void fill(float value)
public final void fill(float r, float g, float b)
public final void fill(float r, float g, float b, float a)
public final float findMin()
public final float findMax()
public final Layer copy()
public final Layer normalize()
public final Layer normalize(float new_min, float new_max)
public final Layer normalize(float min, float max, float new_min, float new_max)
public final Layer clip()
public final Layer crop(int x_lo, int y_lo, int x_hi, int y_hi)
public final Layer cropWrap(int x_lo, int y_lo, int x_hi, int y_hi)
public final Layer tile(int new_width, int new_height)
public final Layer tileDouble()
public final Layer offset(int x_offset, int y_offset)
public final Layer brightness(float brightness)
public final Layer brightness(float r, float g, float b)
public final Layer multiply(float factor)
public final Layer multiply(float r, float g, float b)
public final Layer multiply(float r, float g, float b, float a)
public final Layer add(float add)
public final Layer add(float r, float g, float b)
public final Layer addClip(float r, float g, float b)
public final Layer addClip(float r, float g, float b, float a)
public final Layer contrast(float contrast)
public final Layer contrast(float r, float g, float b)
public final Layer gamma(float gamma)
public final Layer gamma(float r, float g, float b)
public final Layer gamma2()
public final Layer gamma4()
public final Layer gamma8()
public final Layer invert()
public final Layer threshold(float start, float end)
public final Layer scale(int new_width, int new_height)
public final Layer scaleCubic(int new_width, int new_height)
public final Layer scaleFast(int new_width, int new_height)
public final Layer rotate(int degrees)
public final Layer shear(float offset)
public final Layer flipH()
public final Layer flipV()
public final Layer smooth(int radius)
public final Layer sharpen(int radius)
public final Layer convolution(float[][] filter, float divisor, float offset)
public final Layer grow(float r, float g, float b, int radius)
public final Layer bump(Channel bumpmap, float lx, float ly, float shadow, float light_r, float light_g, float light_b, float ambient_r, float ambient_g, float ambient_b)
public final Layer bumpSpecular(Channel bumpmap, float lx, float ly, float lz, float shadow, float light_r, float light_g, float light_b, int specular)
public final Layer toHSV()
public final Layer toRGB()
public final Layer saturation(float saturation)
public final Layer hue(float hue)
public final Layer hueRotation(float min, float max, float new_min, float new_max)
public final Layer lineart()
public final Layer abs()