ImageGear for .NET
ImGearARTArrow Class
Members  Example  See Also  Send Feedback
ImageGear21.Art Assembly > ImageGear.ART Namespace : ImGearARTArrow Class




Glossary Item Box

Represents legacy ART Arrow mark.

Object Model

ImGearARTArrow ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint StructureImGearRectangle StructureImGearPoint Structure

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Example

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 BasicCopy 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)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTArrow

See Also

©2013. Accusoft Corporation. All Rights Reserved.