-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathexample1.vb
More file actions
19 lines (16 loc) · 670 Bytes
/
Copy pathexample1.vb
File metadata and controls
19 lines (16 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Module Example1
Sub Main(args As String())
Dim imageReference As RGBABitmapImageReference = CreateRGBABitmapImageReference()
Dim xs as double() = {-2, -1, 0, 1, 2}
Dim ys as double() = {2, -1, -2, -1, 2}
Dim errorMessage As StringReference = New StringReference()
Dim success As Boolean = DrawScatterPlot(imageReference, 800, 600, xs, ys, errorMessage)
If success
Dim pngdata as double() = ConvertToPNG(imageReference.image)
Call WriteToFile(pngdata, "example1.png")
Call DeleteImage(imageReference.image)
Else
Console.Error.WriteLine(errorMessage.stringx)
End If
End Sub
End Module