ImageGear for .NET
ImGearARTLine Class
Members  Example 




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
public class ImGearARTLine : ImGearARTMark, IImGearARTLine  
public __gc class ImGearARTLine : public ImGearARTMark, IImGearARTLine  
public ref class ImGearARTLine : public ImGearARTMark, IImGearARTLine  
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);
' Setup start and endpoint for the line.
Dim igPointStart As New ImGearPoint(0, 0)
Dim igPointEnd As New ImGearPoint(igPage.DIB.Width / 2, igPage.DIB.Height / 2)
' Setup color for the line.
Dim igRGBQuadLine As New ImGearRGBQuad(0, 255, 0)
' Setup color for the heads.
Dim igRGBQuadHead As 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.
Dim igARTLine As New ImGearARTLine( _
 igPointStart, igPointEnd, igRGBQuadLine, ImGearARTPenStyle.SOLID, 4, _
 CInt(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

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback