Dim cg As New clsgraph
Dim i As Long
'----------------------------------------
'初期値はオブジェクトを設定する前に指定する
'グラフエリアの大きさ指定
cg.GraphAreaWidth = 300#
cg.GraphAreaHeight = 300#
'x軸,y軸の最大値・最小値を指定
cg.XMAXValue = 100#
cg.XMINValue = 0#
cg.YMAXValue = 100#
cg.YMINValue = 0#
'目盛り間隔の指定
cg.XDisBigScale = 10#
cg.YDisBigScale = 10#
cg.XDisSmallScale = 1#
cg.YDisSmallScale = 1#
'----------------------------------------
'----------------------------------------
'描画開始
cg.TargetGraphObject = Picture1
'点の描画->TEST
For i = 0& To 10&
cg.DrawCircle 5 * i, 10 * i, RGB(0, 0, 255)
Next i
'タイトルの描画
cg.DrawGraphTitle "Fig.### Graph Title", RGB(0, 0, 0)
cg.DrawXTitle "x-Line Title", RGB(0, 0, 0)
cg.DrawYTitle "y-Line Title", RGB(0, 0, 0)
'----------------------------------------
'再描画
cg.RefreshObject
'グラフをビットマップに保存
cg.SaveBitmapGraph "c:\000.bmp"
|