jp.hishidama.bitmap
クラス FileBitmapControl
java.lang.Object
jp.hishidama.bitmap.FileBitmapControl
public class FileBitmapControl
- extends Object
ファイル上で扱うビットマップの実体
- 作成者:
- ひしだま
フィールドの概要 |
byte[] |
buf
set0(),get0()で使うためのバッファ |
メソッドの概要 |
boolean |
close()
|
static BitmapFileHeader |
createBitmapFileHeader(BitmapInfoHeader bi,
BitmapInfoColors pl)
|
boolean |
flush()
|
boolean |
get0(int x,
int y)
|
static long |
getFileOffset(BitmapFileHeader fh,
BitmapInfoHeader bi,
int x,
int y,
int pitch)
|
long |
getFileOffset(int x,
int y)
|
static long |
getPicOffset(BitmapInfoHeader bi,
int x,
int y,
int pitch)
|
boolean |
init(File file,
BitmapFileHeader fh)
|
boolean |
init(String pathName,
String fileName)
|
boolean |
set0(int x,
int y)
|
boolean |
setPalet(int c,
int r,
int g,
int b)
|
buf
public byte[] buf
- set0(),get0()で使うためのバッファ
FileBitmapControl
public FileBitmapControl(FileBitmap bmp)
init
public boolean init(File file,
BitmapFileHeader fh)
init
public boolean init(String pathName,
String fileName)
- パラメータ:
pathName
- fileName
-
createBitmapFileHeader
public static BitmapFileHeader createBitmapFileHeader(BitmapInfoHeader bi,
BitmapInfoColors pl)
getFileOffset
public long getFileOffset(int x,
int y)
getFileOffset
public static long getFileOffset(BitmapFileHeader fh,
BitmapInfoHeader bi,
int x,
int y,
int pitch)
getPicOffset
public static long getPicOffset(BitmapInfoHeader bi,
int x,
int y,
int pitch)
set0
public boolean set0(int x,
int y)
get0
public boolean get0(int x,
int y)
setPalet
public boolean setPalet(int c,
int r,
int g,
int b)
- パラメータ:
c
- r
- g
- b
-
- 戻り値:
- 成功した場合、true
flush
public boolean flush()
- 戻り値:
- 成功した場合、true
close
public boolean close()
- 戻り値:
- 成功した場合、true