Ellipse

機能
円・楕円を描画する
Declare Function Ellipse lib "gdi32.dll" _
(ByVal hdc As Long, ByVal nLeftRect As Long, ByVal nTopRect As Long, _
ByVal nRightRect As Long, ByVal nBottomRect As Long) As Long
Declare Function Ellipse lib "gdi32.dll" _
(ByVal hdc As Integer, ByVal nLeftRect As Integer, ByVal nTopRect As Integer, _
ByVal nRightRect As Integer, ByVal nBottomRect As Integer) As Integer

BOOL Ellipse(
HDC hdc,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect
);
引数
hdc

デバイスコンテキストのハンドル
nLeftRect
楕円を包含する矩形の左上隅のX座標
nTopRect
同、Y座標
nRightRect
同、右下隅のX座標
nBottomRect
同、Y座標
戻り値
正常終了のとき                      0以外
エラーのとき                        0
備考
VisualBasicのCircleメゾットと同じ。
サンプル
解説ページへ移動