public class RGBConverter
extends java.lang.Object
| Constructor and Description |
|---|
RGBConverter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
flipVertical(int[] data,
int width,
int height) |
static void |
populateArray(java.awt.image.BufferedImage image,
int[] dest,
RGBFormat format)
Extracts the image data from the BufferedImage and stores it in the array
provided.
|
static void |
populateImage(int[] array,
int offset,
java.awt.image.BufferedImage image,
RGBFormat vf)
Takes the data in
array and fills the BufferedImage
with that image. |
public static void populateImage(int[] array,
int offset,
java.awt.image.BufferedImage image,
RGBFormat vf)
array and fills the BufferedImage
with that image.array - the array of pixel dataimage - the image to store the data invf - the format the array is provided inpublic static void populateArray(java.awt.image.BufferedImage image,
int[] dest,
RGBFormat format)
image - this needs to be of type INT_ARGB, INT_RGB or INT_ARGB_PRE
for best performancedest - the int array to populate with red, green and blue components.format - the format the dest array needs to be written inpublic static void flipVertical(int[] data,
int width,
int height)