ImageGear .NET v24.14 - Updated
ImGearARTPolyline Class
Members  Example 




ImageGear24.Art Assembly > ImageGear.ART Namespace : ImGearARTPolyline Class
Represents ART Polyline mark.
Object Model
ImGearARTPolyline ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint StructureImGearRectangle StructureIImGearRGBQuad Interface
Syntax
'Declaration
 
Public Class ImGearARTPolyline 
   Inherits ImGearARTMark
   Implements IImGearARTPolyline 
'Usage
 
Dim instance As ImGearARTPolyline
public class ImGearARTPolyline : ImGearARTMark, IImGearARTPolyline  
public __gc class ImGearARTPolyline : public ImGearARTMark, IImGearARTPolyline  
public ref class ImGearARTPolyline : public ImGearARTMark, IImGearARTPolyline  
Example
// Create an array of 5 points for the line.
ImGearPoint[] igPoints = new ImGearPoint[5];
igPoints[0] = new ImGearPoint(0, 0);
igPoints[1] = new ImGearPoint(20, 40);
igPoints[2] = new ImGearPoint(40, 40);
igPoints[3] = new ImGearPoint(80, 40);
igPoints[4] = new ImGearPoint(120, 120);
// Setup color for the line.
ImGearRGBQuad igRGBQuad = new ImGearRGBQuad(40, 40, 200);
// Create poly line with a dot-dashed pattern, width of 4, 100% opaque, closed,
//  and no heads.
ImGearARTPolyline igARTPolyLine = new ImGearARTPolyline(
    igPoints, igRGBQuad, ImGearARTPenStyle.DASHDOT, 4, 255, true,
    null, ImGearARTLineHeadType.NONE, 0, 0, ImGearARTLineHeadType.NONE, 0, 0
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTPolyLine, ImGearARTCoordinatesType.IMAGE_COORD);
' Create an array of 5 points for the line.
Dim igPoints As ImGearPoint() = New ImGearPoint(4) {}
igPoints(0) = New ImGearPoint(0, 0)
igPoints(1) = New ImGearPoint(20, 40)
igPoints(2) = New ImGearPoint(40, 40)
igPoints(3) = New ImGearPoint(80, 40)
igPoints(4) = New ImGearPoint(120, 120)
' Setup color for the line.
Dim igRGBQuad As New ImGearRGBQuad(40, 40, 200)
' Create poly line with a dot-dashed pattern, width of 4, 100% opaque, closed,
'  and no heads.
Dim igARTPolyLine As New ImGearARTPolyline( _
 igPoints, igRGBQuad, ImGearARTPenStyle.DASHDOT, 4, 255, True, _
 Nothing, ImGearARTLineHeadType.NONE, 0, 0, ImGearARTLineHeadType.NONE, 0, 0)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTPolyLine, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTPolyline

See Also

Reference

ImGearARTPolyline Members
ImageGear.ART Namespace