public class BmpUtil extends Object
| Constructor and Description |
|---|
BmpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
constructDouble(byte[] in,
int offset) |
static int |
constructInt(byte[] in,
int offset) |
static int |
constructInt3(byte[] in,
int offset) |
static long |
constructLong(byte[] in,
int offset) |
static short |
constructShort(byte[] in,
int offset) |
static boolean |
hasAlpha(Image image) |
static void |
main(String[] args) |
static BufferedImage |
read(FileInputStream fs) |
static BufferedImage |
read(String sdir) |
static BufferedImage |
read(String sdir,
String sfile) |
protected static Image |
readMap24(FileInputStream fs,
com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) |
protected static Image |
readMap32(FileInputStream fs,
com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) |
protected static Image |
readMap8(FileInputStream fs,
com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) |
static BufferedImage |
toBufferedImage(Image image) |
public static int constructInt(byte[] in,
int offset)
public static int constructInt3(byte[] in,
int offset)
public static long constructLong(byte[] in,
int offset)
public static double constructDouble(byte[] in,
int offset)
public static short constructShort(byte[] in,
int offset)
public static BufferedImage read(FileInputStream fs)
protected static Image readMap32(FileInputStream fs, com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) throws IOException
IOExceptionprotected static Image readMap24(FileInputStream fs, com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) throws IOException
IOExceptionprotected static Image readMap8(FileInputStream fs, com.github.rapidark.framework.media.BmpUtil.BitmapHeader bh) throws IOException
IOExceptionpublic static BufferedImage read(String sdir, String sfile)
public static BufferedImage read(String sdir)
public static BufferedImage toBufferedImage(Image image)
public static boolean hasAlpha(Image image)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.