public class ImgStreamingUtils extends Object
| Constructor and Description |
|---|
ImgStreamingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getImageBytes(BufferedImage src,
byte[] output)
Get raw bytes from ARGB BufferedImage.
|
static BufferedImage |
getScaledImage(BufferedImage src,
int width,
int height,
int type)
Get a scaled BufferedImage.
|
public static BufferedImage getScaledImage(BufferedImage src, int width, int height, int type)
src - source imagewidth - width of scaled imageheight - height of scaled imagetype - BufferedImage typepublic static byte[] getImageBytes(BufferedImage src, byte[] output)
src - ARGB BufferImageoutput - output buffer, if not null and if its length is at least
image's (width * height) * 4, method will put bytes in it.Copyright © 2022 jitsi.org. All rights reserved.