「Bitmap」の編集履歴(バックアップ)一覧に戻る

Bitmap - (2006/01/08 (日) 17:11:19) の編集履歴(バックアップ)


Bitmap

関数

Bitmap(unsigned short w = 0, unsigned short h = 0)
指定したサイズのBitmapを生成します。

Bitmap(const char* path)
pathにある画像ファイルを読み込み、Bitmapを生成します。

void dispose()
Bitmapを解放します。

bool isDisposed()
ビットマップがすでに解放されている場合に真を返します。

unsigned short getWidth()
ビットマップの幅を取得します。

unsigned short getHeight()
ビットマップの高さを取得します。

void get_rect(Rect* rec)
ビットマップの矩形([Rect])を取得します。

bool blt(unsigned short x, unsigned short y, Bitmap* src_bitmap, Rect* src_rect, float opacity = 255)
src_bitmap の矩形 src_rect ([Rect]) から、このビットマップの座標 (x, y) にブロック転送を行います。
opacity には不透明度を 0 ~ 255 の範囲で指定できます。

bool clear(unsigned int ccolor = transparency)
ビットマップ全体をccolorでクリアします。

unsigned int get_pixel(unsigned short x, unsigned short y)
点 (x, y) の色(PSP用カラーコード)を取得します。

bool set_pixel(unsigned short x, unsigned short y, unsigned int pix)
点 (x, y) の色を pix(PSP用カラーコード)に設定します。
記事メニュー
目安箱バナー