com.alibaba.simpleimage.util
类 ImageUtils

java.lang.Object
  继承者 com.alibaba.simpleimage.util.ImageUtils

public final class ImageUtils
extends Object

TODO Comment of SIUtils

作者:
wendell

方法摘要
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(ImageInputStream stream)
           
static void closeQuietly(ImageOutputStream outStream)
           
static void closeQuietly(ImageReader reader)
           
static InputStream createMemoryStream(InputStream input)
           
static ImageLayout getImageLayoutHint(RenderingHints renderHints)
           
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)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

closeQuietly

public static void closeQuietly(ImageInputStream inStream)

closeQuietly

public static void closeQuietly(ImageOutputStream outStream)

closeQuietly

public static void closeQuietly(ImageInputStream stream)

closeQuietly

public static void closeQuietly(ImageReader reader)

getImageLayoutHint

public static ImageLayout getImageLayoutHint(RenderingHints renderHints)

isJPEG

public static boolean isJPEG(InputStream source)
                      throws IOException
抛出:
IOException

isBMP

public static boolean isBMP(InputStream in)
                     throws IOException
抛出:
IOException

isGIF

public static boolean isGIF(InputStream in)
                     throws IOException
抛出:
IOException

isPNG

public static boolean isPNG(InputStream in)
                     throws IOException
抛出:
IOException

isTIFF

public static boolean isTIFF(InputStream in)
                      throws IOException
抛出:
IOException

identifyFormat

public static ImageFormat identifyFormat(InputStream in)
                                  throws IOException
抛出:
IOException

createMemoryStream

public static InputStream createMemoryStream(InputStream input)
                                      throws IOException
抛出:
IOException

clampRoundByte

public static final byte clampRoundByte(double in)

clampRoundUShort

public static final short clampRoundUShort(double in)

clampRoundShort

public static final short clampRoundShort(double in)

clampRoundInt

public static final int clampRoundInt(double in)

clampFloat

public static final float clampFloat(double in)


Copyright © 2012–2013 Alibaba Group. All rights reserved.