public class ImageUtil
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static java.lang.String |
IMAGE_TYPE_BMP |
static java.lang.String |
IMAGE_TYPE_JPG |
static java.lang.String |
IMAGE_TYPE_PNG |
コンストラクタと説明 |
---|
ImageUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.awt.image.BufferedImage |
readImageFile(java.io.File file) |
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage image,
int width,
int height) |
static void |
writeImage(java.awt.image.BufferedImage image,
java.io.File file,
java.lang.String type) |
public static final java.lang.String IMAGE_TYPE_BMP
public static final java.lang.String IMAGE_TYPE_JPG
public static final java.lang.String IMAGE_TYPE_PNG
public static java.awt.image.BufferedImage readImageFile(java.io.File file)
public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image, int width, int height)
public static void writeImage(java.awt.image.BufferedImage image, java.io.File file, java.lang.String type)