public class PHATImageUtils extends Object
| Constructor and Description |
|---|
PHATImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bufferedImageToBMPByteArray(BufferedImage image,
BufferedImage bufferedImage) |
static byte[] |
bufferedImageToFormat(BufferedImage image,
String formatName) |
static byte[] |
bufferedImageToFormat(BufferedImage image,
String formatName,
ByteArrayOutputStream baos) |
static byte[] |
bufferedImageToJPGByteArray(BufferedImage image) |
static void |
convertABGRToRGB(BufferedImage image,
int[] buffer) |
static byte[] |
convertABGRToRGB565(BufferedImage image,
BufferedImage bufferedImage) |
static byte[] |
convertABGRToYUV220SP(BufferedImage image) |
static void |
getScreenShotABGR(ByteBuffer bgraBuf,
BufferedImage out)
Good format for java swing.
|
static void |
getScreenShotBGRA(ByteBuffer bgraBuf,
BufferedImage out) |
static void |
main(String[] args) |
static void |
printImageFormatNames() |
public static byte[] bufferedImageToJPGByteArray(BufferedImage image)
public static void printImageFormatNames()
public static byte[] bufferedImageToBMPByteArray(BufferedImage image, BufferedImage bufferedImage)
public static void convertABGRToRGB(BufferedImage image, int[] buffer)
public static byte[] convertABGRToRGB565(BufferedImage image, BufferedImage bufferedImage)
public static byte[] bufferedImageToFormat(BufferedImage image, String formatName)
public static byte[] bufferedImageToFormat(BufferedImage image, String formatName, ByteArrayOutputStream baos)
public static void getScreenShotBGRA(ByteBuffer bgraBuf, BufferedImage out)
public static void getScreenShotABGR(ByteBuffer bgraBuf, BufferedImage out)
bgraBuf - out - public static byte[] convertABGRToYUV220SP(BufferedImage image)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.