Visual Basic
C#
Managed Extensions for C++
C++/CLI
C# | Copy Code |
---|---|
// Setup start and endpoint for the arrow. ImGearPoint igPointStart = new ImGearPoint(0, 0); ImGearPoint igPointEnd = new ImGearPoint(igPage.DIB.Width / 2, igPage.DIB.Height / 2); // Setup color for annotation. ImGearRGBQuad igRGBQuad = new ImGearRGBQuad(0, 255, 0); // Create the Arrow annotation with a width of 4, no highlight, // regular pointer head type, a 30 degree angle for the head, and a length of 20 for the head. ImGearARTArrow igARTArrow = new ImGearARTArrow( igPointStart, igPointEnd, igRGBQuad, 4, false, ImGearARTLineHeadType.POINTER, 30, 20 ); // Add the annotation to the ARTPage. igARTPage.AddMark(igARTArrow, ImGearARTCoordinatesType.IMAGE_COORD); |
Visual Basic | Copy Code |
---|---|
' Setup start and endpoint for the arrow. Dim igPointStart As New ImGearPoint(0, 0) Dim igPointEnd As New ImGearPoint(igPage.DIB.Width / 2, igPage.DIB.Height / 2) ' Setup color for annotation. Dim igRGBQuad As New ImGearRGBQuad(0, 255, 0) ' Create the Arrow annotation with a width of 4, no highlight, ' regular pointer head type, a 30 degree angle for the head, and a length of 20 for the head. Dim igARTArrow As New ImGearARTArrow( _ igPointStart, igPointEnd, igRGBQuad, _ 4, False, ImGearARTLineHeadType.POINTER, 30, 20) ' Add the annotation to the ARTPage. igARTPage.AddMark(igARTArrow, ImGearARTCoordinatesType.IMAGE_COORD) |
System.Object
ImageGear.ART.ImGearARTSelection
ImageGear.ART.ImGearARTMark
ImageGear.ART.ImGearARTArrow