public class ImageHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
| Constructor and Description |
|---|
ImageHandler(BufferedImage image) |
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 left,
Color right) |
ByteBuffer |
getBytes() |
int |
getHeight() |
BufferedImage |
getImage() |
int |
getWidth() |
Color |
pickColor(int x,
int y) |
void |
setRGBA(int x,
int y,
int r,
int g,
int b,
int a) |
public static final int BLOCK_SIZE
public ImageHandler(BufferedImage image)
public ImageHandler(int width,
int height)
public Color pickColor(int x, int y)
public BufferedImage getImage()
public void applyFilter(ImageFilter filter, Rectangle area)
public void setRGBA(int x,
int y,
int r,
int g,
int b,
int a)
public int getWidth()
public int getHeight()
public ByteBuffer getBytes()
public void applyFilter(ImageFilter filter)
Copyright © 2016. All rights reserved.