public abstract class ImageUtils extends Object
| 构造器和说明 |
|---|
ImageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
decode(String code,
File output) |
static void |
decode(String code,
OutputStream output) |
static String |
encode(BufferedImage src,
String type) |
static String |
encode(File file,
String type) |
static String |
encode(InputStream src,
String type) |
static String |
encode(URL src,
String type) |
static void |
fade(BufferedImage src,
String format,
OutputStream output) |
static void |
fade(byte[] src,
String format,
File output) |
static void |
fade(File file,
String format,
File output) |
static void |
fade(InputStream src,
String format,
File output) |
static void |
fade(URL src,
String format,
File output) |
static byte[] |
toByteArray(BufferedImage src,
String type) |
static byte[] |
toByteArray(File file,
String type) |
static byte[] |
toByteArray(InputStream src,
String type) |
static byte[] |
toByteArray(URL url,
String type) |
public static void fade(File file, String format, File output) throws IOException
IOExceptionpublic static void fade(URL src, String format, File output) throws IOException
IOExceptionpublic static void fade(byte[] src,
String format,
File output)
throws IOException
IOExceptionpublic static void fade(InputStream src, String format, File output) throws IOException
IOExceptionpublic static void fade(BufferedImage src, String format, OutputStream output) throws IOException
IOExceptionpublic static byte[] toByteArray(File file, String type) throws IOException
IOExceptionpublic static byte[] toByteArray(BufferedImage src, String type) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream src, String type) throws IOException
IOExceptionpublic static byte[] toByteArray(URL url, String type) throws IOException
IOExceptionpublic static String encode(BufferedImage src, String type) throws IOException
IOExceptionpublic static String encode(InputStream src, String type) throws IOException
IOExceptionpublic static String encode(URL src, String type) throws IOException
IOExceptionpublic static String encode(File file, String type) throws IOException
IOExceptionpublic static void decode(String code, OutputStream output) throws IOException
IOExceptionpublic static void decode(String code, File output) throws IOException
IOExceptionCopyright © 2020. All rights reserved.