public final class BytePictureUtils extends Object
| 构造器和说明 |
|---|
BytePictureUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
getBufferByteArray(BufferedImage image) |
static BufferedImage |
getLocalBufferedImage(File res) |
static byte[] |
getLocalByteArray(File res) |
static BufferedImage |
getUrlBufferedImage(String urlPath) |
static byte[] |
getUrlByteArray(String urlPath) |
static InputStream |
getUrlPictureStream(String urlPath) |
static BufferedImage |
newBufferImage(int width,
int height) |
static byte[] |
toByteArray(InputStream is) |
public static byte[] getUrlByteArray(String urlPath)
public static byte[] getLocalByteArray(File res)
public static byte[] getBufferByteArray(BufferedImage image)
public static byte[] toByteArray(InputStream is)
public static BufferedImage getUrlBufferedImage(String urlPath)
public static BufferedImage getLocalBufferedImage(File res)
public static InputStream getUrlPictureStream(String urlPath) throws IOException
public static BufferedImage newBufferImage(int width, int height)
Copyright © 2020. All rights reserved.