'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddFreeHand_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddFreeHandAnnotInteractive(Color.BlueViolet, 0.1F, System.Drawing.Drawing2D.LineCap.Triangle, System.Drawing.Drawing2D.LineCap.Triangle, 1)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddFreeHandAnnotInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddFreeHand_Click(object sender, EventArgs e)
{
GdViewer1.AddFreeHandAnnotInteractive(Color.BlueViolet, 0.1f, System.Drawing.Drawing2D.LineCap.Triangle, System.Drawing.Drawing2D.LineCap.Triangle, 1);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddFreeHandAnnotInteractive");
}