|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.bitmap.Bytes jp.hishidama.bitmap.BitmapFileHeader
public class BitmapFileHeader
ビットマップ保存用ファイルのヘッダー
コンストラクタの概要 | |
---|---|
BitmapFileHeader()
コンストラクタ |
メソッドの概要 | |
---|---|
byte[] |
getBytes()
ファイルへ保存する為のバイト列を返す |
int |
getBytesLength()
当クラスの保存用配列のサイズを返す |
int |
getOffBits()
ファイルの先頭から画像データの位置までのオフセットを返す |
short |
getReserved1()
予備1を返す |
short |
getReserved2()
予備2を返す |
int |
getSize()
ファイルサイズを返す |
short |
getType()
ファイルの識別子を返す 基本的に「BM」という文字列になる値 |
void |
init(byte[] data)
ファイルのバイト列から初期化する |
void |
setOffBits(int i)
ファイルの先頭から画像データの位置までのオフセットをセットする |
void |
setReserved1(short s)
予備1をセットする |
void |
setReserved2(short s)
予備2をセットする |
void |
setSize(int i)
ファイルサイズをセットする |
void |
setType(short s)
ファイルの識別子をセットする |
void |
setType(String s)
ファイルの識別子をセットする |
クラス jp.hishidama.bitmap.Bytes から継承されたメソッド |
---|
get, get, set, set |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public BitmapFileHeader()
メソッドの詳細 |
---|
public byte[] getBytes()
Bytes
内の getBytes
public void init(byte[] data)
Bytes
内の init
data
- バイト列public int getBytesLength()
Bytes
内の getBytesLength
public int getOffBits()
public short getReserved1()
public short getReserved2()
public int getSize()
public short getType()
public void setOffBits(int i)
i
- オフセット(バイト単位)public void setReserved1(short s)
s
- 予備1public void setReserved2(short s)
s
- 予備2public void setSize(int i)
i
- ファイルサイズ(バイト単位)public void setType(short s)
s
- 識別子(数値)public void setType(String s)
s
- 識別子(文字列)
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |