|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectjp.hishidama.bitmap.BitmapInfoColors
public class BitmapInfoColors
ビットマップ用パレット
| コンストラクタの概要 | |
|---|---|
BitmapInfoColors(int cnt)
コンストラクタ |
|
| メソッドの概要 | |
|---|---|
int |
getBytesLength()
パレットのファイルへの保存用のバイト数を返す |
int |
getColor(int rgb)
RGBに対する色コードを返す (パレットの中から近いものを探して返す) |
int |
getCount()
パレットの個数を返す |
byte[] |
getPalBytes()
パレットのファイルへの保存用のバイト列を返す |
int |
getRGB(int c)
色コードに対するRGBを返す |
static int |
getRGB(int r,
int g,
int b)
3原色からRGBを返す |
static int |
getRgbB(int rgb)
RGBの青要素を返す |
static int |
getRgbG(int rgb)
RGBの緑要素を返す |
static int |
getRgbR(int rgb)
RGBの赤要素を返す |
void |
init(byte[] data)
パレットをファイルのバイト列から初期化する |
void |
setPalet(int c,
int r,
int g,
int b)
パレットを設定する |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BitmapInfoColors(int cnt)
cnt - パレット数| メソッドの詳細 |
|---|
public int getCount()
public int getRGB(int c)
c - 色コード
public int getColor(int rgb)
rgb - RGB
public void setPalet(int c,
int r,
int g,
int b)
c - 色コードr - 赤要素(0〜255)g - 緑要素(0〜255)b - 青要素(0〜255)
public static int getRGB(int r,
int g,
int b)
r - 赤要素(0〜255)g - 緑要素(0〜255)b - 青要素(0〜255)
public static int getRgbR(int rgb)
rgb - RGB
public static int getRgbG(int rgb)
rgb - RGB
public static int getRgbB(int rgb)
rgb - RGB
public byte[] getPalBytes()
public int getBytesLength()
public void init(byte[] data)
data - バイト列
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||