Bitmap - (2006/01/08 (日) 17:11:19) の編集履歴(バックアップ)
Bitmap
関数
Bitmap(unsigned short w = 0, unsigned short h = 0)
指定したサイズのBitmapを生成します。
指定したサイズのBitmapを生成します。
Bitmap(const char* path)
pathにある画像ファイルを読み込み、Bitmapを生成します。
pathにある画像ファイルを読み込み、Bitmapを生成します。
void dispose()
Bitmapを解放します。
Bitmapを解放します。
bool isDisposed()
ビットマップがすでに解放されている場合に真を返します。
ビットマップがすでに解放されている場合に真を返します。
unsigned short getWidth()
ビットマップの幅を取得します。
ビットマップの幅を取得します。
unsigned short getHeight()
ビットマップの高さを取得します。
ビットマップの高さを取得します。
void get_rect(Rect* rec)
ビットマップの矩形([Rect])を取得します。
ビットマップの矩形([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 の範囲で指定できます。
src_bitmap の矩形 src_rect ([Rect]) から、このビットマップの座標 (x, y) にブロック転送を行います。
opacity には不透明度を 0 ~ 255 の範囲で指定できます。
bool clear(unsigned int ccolor = transparency)
ビットマップ全体をccolorでクリアします。
ビットマップ全体をccolorでクリアします。
unsigned int get_pixel(unsigned short x, unsigned short y)
点 (x, y) の色(PSP用カラーコード)を取得します。
点 (x, y) の色(PSP用カラーコード)を取得します。
bool set_pixel(unsigned short x, unsigned short y, unsigned int pix)
点 (x, y) の色を pix(PSP用カラーコード)に設定します。
点 (x, y) の色を pix(PSP用カラーコード)に設定します。