public final class ImageUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static float |
clampFloat(double in) |
static byte |
clampRoundByte(double in) |
static int |
clampRoundInt(double in) |
static short |
clampRoundShort(double in) |
static short |
clampRoundUShort(double in) |
static void |
closeQuietly(ImageInputStream inStream) |
static void |
closeQuietly(ImageOutputStream outStream) |
static void |
closeQuietly(ImageReader reader) |
static InputStream |
createMemoryStream(InputStream input) |
static ImageFormat |
identifyFormat(InputStream in) |
static boolean |
isBMP(InputStream in) |
static boolean |
isGIF(InputStream in) |
static boolean |
isJPEG(InputStream source) |
static boolean |
isPNG(InputStream in) |
static boolean |
isTIFF(InputStream in) |
public static void closeQuietly(ImageInputStream inStream)
public static void closeQuietly(ImageOutputStream outStream)
public static void closeQuietly(ImageReader reader)
public static boolean isJPEG(InputStream source) throws IOException
IOExceptionpublic static boolean isBMP(InputStream in) throws IOException
IOExceptionpublic static boolean isGIF(InputStream in) throws IOException
IOExceptionpublic static boolean isPNG(InputStream in) throws IOException
IOExceptionpublic static boolean isTIFF(InputStream in) throws IOException
IOExceptionpublic static ImageFormat identifyFormat(InputStream in) throws IOException
IOExceptionpublic static InputStream createMemoryStream(InputStream input) throws IOException
IOExceptionpublic static final byte clampRoundByte(double in)
public static final short clampRoundUShort(double in)
public static final short clampRoundShort(double in)
public static final int clampRoundInt(double in)
public static final float clampFloat(double in)
Copyright © 2020. All rights reserved.