ImageGear PDF v25.1 - Updated July 30, 2021
ImGearARTLine Class
Members  Example 




ImageGear.Art Assembly > ImageGear.ART Namespace : ImGearARTLine Class
Represents ART Line mark.
Object Model
ImGearARTLine ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint StructureImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint Structure
Syntax
'Declaration
 
Public Class ImGearARTLine 
   Inherits ImGearARTMark
   Implements IImGearARTLine 
 
'Usage
 
Dim instance As ImGearARTLine
Example
// Setup start and endpoint for the line.
ImGearPoint igPointStart = new ImGearPoint(0, 0);
ImGearPoint igPointEnd = new ImGearPoint(igPage.DIB.Width / 2, igPage.DIB.Height / 2);
// Setup color for the line.
ImGearRGBQuad igRGBQuadLine = new ImGearRGBQuad(0, 255, 0);
// Setup color for the heads.
ImGearRGBQuad igRGBQuadHead = new ImGearRGBQuad(0, 0, 200);
// Create the line annotation with solid pen style, a width of 4, 25% opacity,
//  open head type at the start point with a 30 degree angle and length of 20,
//  solid head type at the end point with a 30 degree angle and length of 20.
ImGearARTLine igARTLine = new ImGearARTLine(
    igPointStart, igPointEnd, igRGBQuadLine, ImGearARTPenStyle.SOLID, 4,
    (int)(0.25 * 255), igRGBQuadHead, ImGearARTLineHeadType.OPEN, 30, 20,
    ImGearARTLineHeadType.POINTER_SOLID, 30, 20
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTLine, ImGearARTCoordinatesType.IMAGE_COORD);
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTLine

See Also

Reference

ImGearARTLine Members
ImageGear.ART Namespace