jp.hishidama.bitmap
クラス Bitmap16

java.lang.Object
  上位を拡張 jp.hishidama.bitmap.AbstractBitmap
      上位を拡張 jp.hishidama.bitmap.Bitmap16
すべての実装されたインタフェース:
Bitmap
直系の既知のサブクラス:
FileBitmap16, MemoryBitmap16

public abstract class Bitmap16
extends AbstractBitmap

16bit色ビットマップ

作成者:
ひしだま

フィールドの概要
 
インタフェース jp.hishidama.bitmap.Bitmap から継承されたフィールド
INVALID_COLOR
 
コンストラクタの概要
Bitmap16(BitmapInfoHeader bi)
           
Bitmap16(int nx, int ny)
          コンストラクタ
 
メソッドの概要
 int getB(int c)
          色コードの青要素を返す
 int getColor(int rgb)
          RGBに該当する色コードを返す
 int getColor(int r, int g, int b)
          (r,g,b)に該当する色コードを返す
 int getG(int c)
          色コードの緑要素を返す
 int getR(int c)
          色コードの赤要素を返す
 int getRGB(int c)
          色コードのRGBを返す
 
クラス jp.hishidama.bitmap.AbstractBitmap から継承されたメソッド
calcPitch, copy, fill, get, getBitmapInfoHeader, getPalets, getPitch, getRGB, line, save, save, set, setRGB, validColor, validPos
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.hishidama.bitmap.Bitmap から継承されたメソッド
get0, set0
 

コンストラクタの詳細

Bitmap16

public Bitmap16(int nx,
                int ny)
コンストラクタ

パラメータ:
nx - ビットマップの大きさ
ny - ビットマップの大きさ

Bitmap16

public Bitmap16(BitmapInfoHeader bi)
パラメータ:
bi -
メソッドの詳細

getRGB

public int getRGB(int c)
色コードのRGBを返す

定義:
インタフェース Bitmap 内の getRGB
定義:
クラス AbstractBitmap 内の getRGB
パラメータ:
c - 色コード
戻り値:
RGB

getR

public int getR(int c)
クラス AbstractBitmap の記述:
色コードの赤要素を返す

オーバーライド:
クラス AbstractBitmap 内の getR
パラメータ:
c - 色コード
戻り値:
R(0〜255)

getG

public int getG(int c)
クラス AbstractBitmap の記述:
色コードの緑要素を返す

オーバーライド:
クラス AbstractBitmap 内の getG
パラメータ:
c - 色コード
戻り値:
G(0〜255)

getB

public int getB(int c)
クラス AbstractBitmap の記述:
色コードの青要素を返す

オーバーライド:
クラス AbstractBitmap 内の getB
パラメータ:
c - 色コード
戻り値:
B(0〜255)

getColor

public int getColor(int rgb)
インタフェース Bitmap の記述:
RGBに該当する色コードを返す

戻り値:
色コード

getColor

public int getColor(int r,
                    int g,
                    int b)
クラス AbstractBitmap の記述:
(r,g,b)に該当する色コードを返す

定義:
インタフェース Bitmap 内の getColor
オーバーライド:
クラス AbstractBitmap 内の getColor
パラメータ:
r - (0〜255)
g - (0〜255)
b - (0〜255)
戻り値:
色コード