Pie

機能
扇形を描画する
Declare Function Pie lib "gdi32.dll" _
(ByVal hdc As Long, ByVal nLeftRect As Long, ByVal nTopRect As Long, _
ByVal nRightRect As Long, ByVal nBottomRect As Long, _
ByVal nXRadial1 As Long, ByVal nYRadial1 As Long, _
ByVal nXRadial2 As Long, ByVal nYRadial2 As Long) As Long
Declare Function Pie lib "gdi32.dll" _
(ByVal hdc As Integer, ByVal nLeftRect As Integer, ByVal nTopRect As Integer, _
ByVal nRightRect As Integer, ByVal nBottomRect As Integer, _
ByVal nXRadial1 As Integer, ByVal nYRadial1 As Integer, _
ByVal nXRadial2 As Integer, ByVal nYRadial2 As Integer) As Integer

BOOL Pie(
HDC hdc,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nXRadial1,
int nYRadial1,
int nXRadial2,
int nYRadial2
);
引数
hdc

デバイスコンテキストのハンドル
nLeftRect
楕円を包含する矩形の左上隅のX座標
nTopRect
同、Y座標
nRightRect
同、右下隅のX座標
nBottomRect
同、Y座標
nXRadial1
扇形の始点を定義するX座標
nYRadial1
同、Y座標
nXRadial2
扇形の終点を定義するX座標
nYRadial2
同、Y座標
戻り値
正常終了のとき                      0以外
エラーのとき                        0
備考
内部の塗りつぶしは、デバイスコンテキストに選択されているブラシによって行われる。
この関数を実行後も、ペンのカレントポジションは変更されない。
サンプル
解説ページへ移動