Example showing curve drawing using GINOGRAF
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 7545
ClientLeft = 60
ClientTop = 345
ClientWidth = 10410
LinkTopic = "Form1"
ScaleHeight = 7545
ScaleWidth = 10410
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
Height = 4965
Left = 990
ScaleHeight = 4905
ScaleWidth = 7215
TabIndex = 0
Top = 330
Width = 7275
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Resize()
Dim yy(6) As GPOINT
Picture1.width = Me.width - 200
Picture1.top = 100
Picture1.height = Me.height - 400
Picture1.Left = 100
yy(1).x = 1#
yy(1).y = 7#
yy(2).x = 2.1
yy(2).y = 8.5
yy(3).x = 3.1
yy(3).y = 7.3
yy(4).x = 4.2
yy(4).y = 4.1
yy(5).x = 5.1
yy(5).y = 5.2
yy(6).x = 6#
yy(6).y = 1.2
hInstance = App.hInstance
Picture1.Cls
gOpenGino
gMwinao GNULL, Picture1.hDC
gSetLineColour 7
ggPlotGraph 6, yy(1), GLINEARTYPE1, GLINEARTYPE1, -GSPLINE, 0
Picture1.Refresh
gCloseDevice
End Sub