DrawRect

概要

長方形を描画します。

プロトタイプ

void DrawRect(int index, int x, int y, int width, int height, int color);

戻り値

なし

パラメータ

index

オフスクリーン画像バッファ番号 (-1〜255)

x, y

矩形左上座標

width, height

矩形サイズ

color

描画する色

解説

DrawRect 関数は、幅 1px の線で矩形 (長方形) を描画します。index に -1 を指定すると、描画先をバックバッファにすることができます。

参照

FillRect

▲SecTop | ▲PageTop
Copyright (c) 1999-2006 インターネット停留所