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