|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectMorphImage
public class MorphImage
変形イメージクラス
フィールドの概要 | |
---|---|
protected java.awt.Color |
bgColor
背景色 |
protected int |
figureHeight
変形対象の高さ |
protected int[] |
figureWidth
変形対象の幅 |
protected int[] |
figureX
変形対象の x 座標 |
protected int[] |
figureY
変形対象の y 座標 |
protected int |
height
イメージの高さ |
protected int[] |
ofset
ピクセルオフセット |
protected int[] |
pixel
画面ピクセルを格納した配列 |
protected int |
width
イメージの幅 |
コンストラクタの概要 | |
---|---|
MorphImage(java.awt.Image image,
int width,
int height,
int threshold)
変形イメージオブジェクトの構築 |
メソッドの概要 | |
---|---|
int |
getBackground()
背景色を返す |
int |
getFigureHeight()
変形対象の高さを返す |
int |
getFigureWidth(int y)
変形対象の幅を返す |
int |
getFigureX(int indexX,
int y)
変形対象の x 座標を返す |
int |
getFigureY(int index)
変形対象の y 座標を返す |
int |
getHeight()
イメージの高さを返す |
protected int[] |
getPixel(java.awt.Image image,
int width,
int height)
イメージからピクセルデータを取り出す |
int |
getWidth()
イメージの幅を返す |
protected void |
init(int threshold)
ピクセルデータの初期化 |
int |
pixel(int x,
int y)
ピクセルデータを返す |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected int width
protected int height
protected int[] pixel
protected int[] figureX
protected int[] figureY
protected int[] figureWidth
protected int figureHeight
protected int[] ofset
protected java.awt.Color bgColor
コンストラクタの詳細 |
---|
public MorphImage(java.awt.Image image, int width, int height, int threshold)
image
- ピクセルデータを取り出すイメージwidth
- イメージの幅height
- イメージの高さthreshold
- 背景色の閾値メソッドの詳細 |
---|
protected int[] getPixel(java.awt.Image image, int width, int height)
image
- ピクセルデータを取り出すイメージwidth
- イメージの幅height
- イメージの高さ
protected void init(int threshold)
threshold
- 背景色の閾値public int getWidth()
public int getHeight()
public int pixel(int x, int y)
x
- x 座標y
- y 座標
public int getFigureX(int indexX, int y)
indexX
- 変形対象の x 座標を取り出すインデックスy
- イメージの y 座標
public int getFigureY(int index)
index
- 変形対象の y 座標を取り出すインデックス
public int getFigureWidth(int y)
y
- イメージの y 座標
public int getFigureHeight()
public int getBackground()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |