'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddPolygon_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddPolygonAnnotInteractive(Color.FromArgb(255, 0, 0, 255), 0.05F, Color.FromArgb(255, 255, 255, 0), 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.FromArgb(255, 0, 0, 255), 0.05f, Color.FromArgb(255, 255, 255, 0), 1);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddPolygonAnnotInteractive");
}