|
||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||
java.lang.Objectfuku.eb4j.util.ImageUtil
public final class ImageUtil
イメージ操作ユーティリティクラス。
| メソッドの概要 | |
|---|---|
static byte[] |
bitmapToPNG(byte[] b,
int width,
int height)
デフォルトの圧縮レベル、前景色を黒、背景色を白、無透過で ビットマップイメージをPNG (Portable Network Graphics) に変換します。 |
static byte[] |
bitmapToPNG(byte[] b,
int width,
int height,
Color foreground,
Color background,
boolean transparent)
デフォルトの圧縮レベル、指定された前景色、指定された背景色で ビットマップイメージをPNG (Portable Network Graphics) に変換します。 |
static byte[] |
bitmapToPNG(byte[] b,
int width,
int height,
Color foreground,
Color background,
boolean transparent,
int level)
指定された圧縮レベル、指定された前景色、指定された背景色で ビットマップイメージをPNG (Portable Network Graphics) に変換します。 |
static byte[] |
dibToPNG(byte[] b)
デフォルトの圧縮レベルでDIB (Device Independent Bitmaps) を PNG (Portable Network Graphics) に変換します。 |
static byte[] |
dibToPNG(byte[] b,
int level)
指定された圧縮レベルでDIB (Device Independent Bitmaps) を PNG (Portable Network Graphics) に変換します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public static byte[] bitmapToPNG(byte[] b,
int width,
int height)
b - ビットマップデータwidth - 画像の幅height - 画像の高さ
public static byte[] bitmapToPNG(byte[] b,
int width,
int height,
Color foreground,
Color background,
boolean transparent)
b - ビットマップデータwidth - 画像の幅height - 画像の高さforeground - 前景色background - 背景色transparent - 背景を透過させるかどうか
public static byte[] bitmapToPNG(byte[] b,
int width,
int height,
Color foreground,
Color background,
boolean transparent,
int level)
b - ビットマップデータwidth - 画像の幅height - 画像の高さforeground - 前景色background - 背景色transparent - 背景を透過させるかどうかlevel - 圧縮レベル (0-9)
public static byte[] dibToPNG(byte[] b)
b - DIBデータ
public static byte[] dibToPNG(byte[] b,
int level)
b - DIBデータlevel - 圧縮レベル (0-9)
|
||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||