'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddPolygon_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddPolygonAnnotInteractive(Color.Blue, 0.05F, Color.Yellow, 1)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddPolygonAnnotInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddPolygon_Click(object sender, EventArgs e)
{
GdViewer1.AddPolygonAnnotInteractive(Color.Blue, 0.05f, Color.Yellow, 1);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddPolygonAnnotInteractive");
}