'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddEllipse_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddEllipseAnnotInteractive(true, true, Color.FromArgb(255, 255, 255, 0), Color.FromArgb(255, 96, 158, 160), 0.05F, 0.65F)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddEllipseAnnotInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddEllipse_Click(object sender, EventArgs e)
{
GdViewer1.AddEllipseAnnotInteractive(true, true, Color.FromArgb(255, 255, 255, 0), Color.FromArgb(255, 96, 158, 160), 0.05f, 0.65f);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddEllipseAnnotInteractive");
}