|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.bitmap.AbstractBitmap
public abstract class AbstractBitmap
ビットマップのスーパークラス
フィールドの概要 |
---|
インタフェース jp.hishidama.bitmap.Bitmap から継承されたフィールド |
---|
INVALID_COLOR |
コンストラクタの概要 | |
---|---|
AbstractBitmap(BitmapInfoHeader bi)
|
|
AbstractBitmap(int nx,
int ny)
|
メソッドの概要 | |
---|---|
static int |
calcPitch(int bitCount,
int width)
ピッチを計算する |
void |
copy(int dx,
int dy,
int nx,
int ny,
Bitmap src,
int sx,
int sy)
画像をコピーする |
boolean |
fill(int sx,
int sy,
int nx,
int ny,
int c)
塗り潰す |
int |
get(int x,
int y)
指定された座標の色コードを返す |
int |
getB(int c)
色コードの青要素を返す |
BitmapInfoHeader |
getBitmapInfoHeader()
|
int |
getColor(int r,
int g,
int b)
(r,g,b)に該当する色コードを返す |
int |
getG(int c)
色コードの緑要素を返す |
BitmapInfoColors |
getPalets()
|
int |
getPitch()
当ビットマップのピッチを返す |
int |
getR(int c)
色コードの赤要素を返す |
abstract int |
getRGB(int c)
色コードのRGBを返す |
int |
getRGB(int x,
int y)
指定された座標のRGBを返す |
boolean |
line(int sx,
int sy,
int nx,
int ny,
int c)
線を引く |
boolean |
save(FileOutputStream output)
ファイルへ保存する |
boolean |
save(String pathName,
String fileName)
ファイルへ保存 |
boolean |
set(int x,
int y,
int c)
指定された座標に色コードをセットする |
boolean |
setRGB(int x,
int y,
int rgb)
指定された座標にRGBをセットする |
boolean |
validColor(int c)
指定された色コードが正当かどうか判定する |
boolean |
validPos(int x,
int y)
指定された座標が範囲内かどうか判定する |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.hishidama.bitmap.Bitmap から継承されたメソッド |
---|
get0, getColor, set0 |
コンストラクタの詳細 |
---|
public AbstractBitmap(int nx, int ny)
nx
- ny
- public AbstractBitmap(BitmapInfoHeader bi)
bi
- メソッドの詳細 |
---|
public boolean validPos(int x, int y)
Bitmap
内の validPos
x
- y
-
public boolean validColor(int c)
Bitmap
内の validColor
c
-
public boolean set(int x, int y, int c)
Bitmap
内の set
x
- y
- c
- 色コード
public int get(int x, int y)
Bitmap
内の get
x
- y
-
public boolean setRGB(int x, int y, int rgb)
Bitmap
内の setRGB
x
- y
- rgb
-
public int getRGB(int x, int y)
Bitmap
内の getRGB
x
- y
-
public abstract int getRGB(int c)
Bitmap
内の getRGB
c
- 色コード
public int getR(int c)
c
- 色コード
public int getG(int c)
c
- 色コード
public int getB(int c)
c
- 色コード
public int getColor(int r, int g, int b)
Bitmap
内の getColor
r
- (0〜255)g
- (0〜255)b
- (0〜255)
public boolean fill(int sx, int sy, int nx, int ny, int c)
Bitmap
内の fill
sx
- 始点Xsy
- 始点Ynx
- サイズXny
- サイズYc
- 色コード
public boolean line(int sx, int sy, int nx, int ny, int c)
Bitmap
内の line
sx
- 始点Xsy
- 始点Ynx
- サイズXny
- サイズYc
- 色コード
public void copy(int dx, int dy, int nx, int ny, Bitmap src, int sx, int sy)
Bitmap
内の copy
dx
- コピー先座標Xdy
- コピー先座標Ynx
- コピーサイズXny
- コピーサイズYsrc
- コピー元のビットマップsx
- コピー元左上座標Xsy
- コピー元左上座標Ypublic int getPitch()
Bitmap
内の getPitch
public static int calcPitch(int bitCount, int width)
bitCount
- width
-
public boolean save(String pathName, String fileName)
Bitmap
内の save
pathName
- パス名fileName
- ファイル名
public boolean save(FileOutputStream output)
output
-
public BitmapInfoHeader getBitmapInfoHeader()
Bitmap
内の getBitmapInfoHeader
public BitmapInfoColors getPalets()
Bitmap
内の getPalets
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |