net.mindengine.rainbow4j
public class ImageHandler extends Object
| Constructor and Description |
|---|
ImageHandler(BufferedImage image) |
ImageHandler(byte[] bytes,
int w,
int h) |
ImageHandler(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFilter(ImageFilter filter) |
void |
applyFilter(ImageFilter filter,
Rectangle area) |
static long |
colorDiff(Color cA,
Color cB) |
byte[] |
getBytes() |
int |
getHeight() |
BufferedImage |
getImage() |
Color |
getSmoothedColor(int x,
int y,
int x2,
int y2) |
int |
getWidth() |
Color |
pickColor(int x,
int y) |
void |
setRGB(int x,
int y,
int r,
int g,
int b) |
public ImageHandler(BufferedImage image)
public ImageHandler(int width,
int height)
public ImageHandler(byte[] bytes,
int w,
int h)
public Color getSmoothedColor(int x, int y, int x2, int y2)
public Color pickColor(int x, int y)
public BufferedImage getImage()
public void applyFilter(ImageFilter filter, Rectangle area)
public void setRGB(int x,
int y,
int r,
int g,
int b)
public int getWidth()
public int getHeight()
public byte[] getBytes()
public void applyFilter(ImageFilter filter)
Copyright © 2015. All rights reserved.