public class FNImageUtil
extends java.lang.Object
| コンストラクタと説明 |
|---|
FNImageUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static java.awt.image.BufferedImage |
clone(java.awt.image.BufferedImage image)
BufferedImageをふやす
|
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage image,
int width,
int height)
BufferedImageの解像度を変える
|
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage image,
int width,
int height,
int hints)
BufferedImageの解像度を変える
|
static byte[] |
toByteArray(java.awt.image.BufferedImage image,
java.lang.String formatName)
BufferedImageをバイト配列に変換
|
static java.io.InputStream |
toInputStream(java.awt.image.BufferedImage image,
java.lang.String formatName)
BufferedImageをInputStreamに変換
|
public static java.awt.image.BufferedImage clone(java.awt.image.BufferedImage image)
image - クローン元public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image,
int width,
int height)
image - 変更先width - 横幅height - 縦幅public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image,
int width,
int height,
int hints)
image - 変更先width - 横幅height - 縦幅hints - 解像度の変更方法public static byte[] toByteArray(java.awt.image.BufferedImage image,
java.lang.String formatName)
throws java.io.IOException
image - 変換先formatName - pngなどフォーマット名java.io.IOException - 変換失敗public static java.io.InputStream toInputStream(java.awt.image.BufferedImage image,
java.lang.String formatName)
throws java.io.IOException
image - 変換先formatName - pngなどフォーマット名java.io.IOException - 変換失敗