'線分以外の描画API
'===========================================================
'SetPixel 指定座標に点を描く
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:指定座標
'crColor:点の色
'===========================================================
Private Declare Function SetPixel Lib "gdi32" _
(ByVal hdc As Long, ByVal x As Long, _
ByVal y As Long, ByVal crColor As Long) As Long
'===========================================================
'Rectangle 長方形を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:長方形の左上隅の座標
'X2,Y2:長方形の右下隅の座標
'===========================================================
Private Declare Function Rectangle Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long) As Long
'===========================================================
'RoundRect 角の丸い長方形を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:長方形の左上隅の座標
'X2,Y2:長方形の右下隅の座標
'X3,Y3:角の丸みの幅と高さ
'===========================================================
Private Declare Function RoundRect Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long) As Long
'===========================================================
'Ellipse 楕円形を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:楕円に外接する長方形の左上隅の座標
'X2,Y2:楕円に外接する長方形の右下隅の座標
'===========================================================
Private Declare Function Ellipse Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long) As Long
'===========================================================
'Arc 楕円弧を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:楕円に外接する長方形の左上隅の座標
'X2,Y2:楕円に外接する長方形の右下隅の座標
'X3,Y3:楕円弧の始点座標
'X4,Y4:楕円弧の終点座標
'===========================================================
Private Declare Function Arc Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long, ByVal X4 As Long, _
ByVal Y4 As Long) As Long
'===========================================================
'Chord 弓形を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:楕円に外接する長方形の左上隅の座標
'X2,Y2:楕円に外接する長方形の右下隅の座標
'X3,Y3:楕円弧の始点座標
'X4,Y4:楕円弧の終点座標
'-----------------------------------------------------------
'楕円弧と、2つの端点を結んだ直線を描画するため引数が楕円弧と同じ
'===========================================================
Private Declare Function Chord Lib "gdi32" (ByVal _
hdc As Long, ByVal X1 As Long, ByVal Y1 _
As Long, ByVal X2 As Long, ByVal Y2 _
As Long, ByVal X3 As Long, ByVal Y3 _
As Long, ByVal X4 As Long, ByVal Y4 _
As Long) As Long
'===========================================================
'Pie 扇形を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'X1,Y1:楕円に外接する長方形の左上隅の座標
'X2,Y2:楕円に外接する長方形の右下隅の座標
'X3,Y3:楕円弧の始点座標
'X4,Y4:楕円弧の終点座標
'-----------------------------------------------------------
'楕円弧と、2つの端点を結んだ直線を描画するため引数が楕円弧と同じ
'===========================================================
Private Declare Function Pie Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long, ByVal X4 As Long, _
ByVal Y4 As Long) As Long
|