|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.sarxos.webcam.util.ImageUtils
public class ImageUtils
Field Summary | |
---|---|
static String |
FORMAT_BMP
Bitmap image format. |
static String |
FORMAT_GIF
Graphics Interchange Format. |
static String |
FORMAT_JPG
Joint Photographic Experts Group format. |
static String |
FORMAT_PNG
Portable Network Graphic format. |
static String |
FORMAT_WBMP
Wireless Application Protocol Bitmap image format. |
Constructor Summary | |
---|---|
ImageUtils()
|
Method Summary | |
---|---|
static BufferedImage |
premultiple(BufferedImage src)
|
static byte[] |
toByteArray(BufferedImage image,
String format)
Convert BufferedImage to byte array. |
static byte[] |
toRawByteArray(BufferedImage image)
|
static BufferedImage |
unpremultiple(BufferedImage pre)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FORMAT_GIF
public static final String FORMAT_PNG
public static final String FORMAT_JPG
public static final String FORMAT_BMP
public static final String FORMAT_WBMP
Constructor Detail |
---|
public ImageUtils()
Method Detail |
---|
public static BufferedImage premultiple(BufferedImage src)
public static BufferedImage unpremultiple(BufferedImage pre)
public static byte[] toByteArray(BufferedImage image, String format)
BufferedImage
to byte array.
image
- the image to be convertedformat
- the output image format
public static byte[] toRawByteArray(BufferedImage image)
|
Bartosz Firyn (SarXos) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |