|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
public interface Bitmap
ビットマップインターフェース
| フィールドの概要 | |
|---|---|
static int |
INVALID_COLOR
不正を表す色コード |
| メソッドの概要 | |
|---|---|
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 |
get0(int x,
int y)
指定された座標の色コードを返す (座標の有効範囲チェック無し) |
BitmapInfoHeader |
getBitmapInfoHeader()
|
int |
getColor(int rgb)
RGBに該当する色コードを返す |
int |
getColor(int r,
int g,
int b)
(r,g,b)に該当する色コードを返す |
BitmapInfoColors |
getPalets()
|
int |
getPitch()
|
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(String pathName,
String fileName)
ファイルへ保存 |
boolean |
set(int x,
int y,
int c)
指定された座標に色コードをセットする |
boolean |
set0(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)
指定された座標が範囲内かどうか判定する |
| フィールドの詳細 |
|---|
static final int INVALID_COLOR
| メソッドの詳細 |
|---|
boolean validPos(int x,
int y)
x - y -
boolean validColor(int c)
c -
boolean set(int x,
int y,
int c)
x - y - c - 色コード
boolean set0(int x,
int y,
int c)
x - y - c - 色コード
boolean setRGB(int x,
int y,
int rgb)
x - y - rgb -
int get(int x,
int y)
x - y -
int get0(int x,
int y)
x - y -
int getRGB(int x,
int y)
x - y -
int getRGB(int c)
c - 色コード
int getColor(int rgb)
rgb -
int getColor(int r,
int g,
int b)
r - (0〜255)g - (0〜255)b - (0〜255)
boolean fill(int sx,
int sy,
int nx,
int ny,
int c)
sx - 始点Xsy - 始点Ynx - サイズXny - サイズYc - 色コード
boolean line(int sx,
int sy,
int nx,
int ny,
int c)
sx - 始点Xsy - 始点Ynx - サイズXny - サイズYc - 色コード
void copy(int dx,
int dy,
int nx,
int ny,
Bitmap src,
int sx,
int sy)
dx - コピー先座標Xdy - コピー先座標Ynx - コピーサイズXny - コピーサイズYsrc - コピー元のビットマップsx - コピー元左上座標Xsy - コピー元左上座標Y
boolean save(String pathName,
String fileName)
pathName - パス名fileName - ファイル名
BitmapInfoHeader getBitmapInfoHeader()
BitmapInfoColors getPalets()
int getPitch()
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||