public final class JetpImageUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
dither(java.awt.Image image) |
static byte[] |
dither(int width,
int[] buffer)
Dither an rgb buffer
|
static byte |
getBestColor(int red,
int green,
int blue) |
static int[] |
getRGBArray(java.awt.image.BufferedImage image) |
static int[] |
getSubImage(int topCornerX,
int topCornerY,
int width,
int height,
int[] image,
int imageWidth) |
static int[] |
getSubsegment(int start,
int length,
int substart,
int sublength) |
static void |
init() |
static void |
main(java.lang.String[] args) |
static int |
mixColors(int color1,
int color2) |
static void |
overlay(int x,
int y,
int[] image,
int imageWidth,
int[] canvas,
int canvasWidth) |
static int |
overwriteColor(int baseColor,
int overlay) |
static byte[] |
simplify(int[] buffer) |
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image img) |
public static void main(java.lang.String[] args)
public static final void init()
public static byte getBestColor(int red,
int green,
int blue)
public static byte[] simplify(int[] buffer)
public static byte[] dither(java.awt.Image image)
public static byte[] dither(int width,
int[] buffer)
width - The width of the imagebuffer - RGB bufferpublic static int[] getSubImage(int topCornerX,
int topCornerY,
int width,
int height,
int[] image,
int imageWidth)
public static void overlay(int x,
int y,
int[] image,
int imageWidth,
int[] canvas,
int canvasWidth)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image img)
public static int[] getRGBArray(java.awt.image.BufferedImage image)
public static int[] getSubsegment(int start,
int length,
int substart,
int sublength)
public static int overwriteColor(int baseColor,
int overlay)
public static int mixColors(int color1,
int color2)