public class ImgStreamingUtils
extends java.lang.Object
Constructor and Description |
---|
ImgStreamingUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getImageBytes(java.awt.image.BufferedImage src,
byte[] output)
Get raw bytes from ARGB BufferedImage.
|
static java.awt.image.BufferedImage |
getScaledImage(java.awt.image.BufferedImage src,
int width,
int height,
int type)
Get a scaled BufferedImage.
|
public static java.awt.image.BufferedImage getScaledImage(java.awt.image.BufferedImage src, int width, int height, int type)
src
- source imagewidth
- width of scaled imageheight
- height of scaled imagetype
- BufferedImage typepublic static byte[] getImageBytes(java.awt.image.BufferedImage src, byte[] output)
src
- ARGB output
- output buffer, if not null and if its length is at least
image's (width * height) * 4, method will put bytes in it.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.