ImageGear .NET - Updated
ImGearARTCurve Class
Members  Example 




ImageGear23.Art Assembly > ImageGear.ART Namespace : ImGearARTCurve Class
Represents ART Curve mark.
Object Model
ImGearARTCurve ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint StructureImGearRectangle StructureImGearPoint Structure
Syntax
'Declaration
 
Public Class ImGearARTCurve 
   Inherits ImGearARTMark
   Implements IImGearARTCurve 
'Usage
 
Dim instance As ImGearARTCurve
public class ImGearARTCurve : ImGearARTMark, IImGearARTCurve  
public __gc class ImGearARTCurve : public ImGearARTMark, IImGearARTCurve  
public ref class ImGearARTCurve : public ImGearARTMark, IImGearARTCurve  
Example
// Create an array of 5 points for the curve.
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 curve.
ImGearRGBQuad igRGBQuadCurve = new ImGearRGBQuad(40, 40, 200);
// Create curve with a dashed pattern, width of 4, tension of 0.75 and opacity of 127 (50%)
ImGearARTCurve igARTCurve = new ImGearARTCurve(
    igPoints, igRGBQuadCurve, ImGearARTPenStyle.DASH, 4, (float)0.75, 127
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTCurve, ImGearARTCoordinatesType.IMAGE_COORD);
' Create an array of 5 points for the curve.
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 curve.
Dim igRGBQuadCurve As New ImGearRGBQuad(40, 40, 200)
' Create curve with a dashed pattern, width of 4, tension of 0.75 and opacity of 127 (50%)
Dim igARTCurve As New ImGearARTCurve( _
 igPoints, igRGBQuadCurve, ImGearARTPenStyle.DASH, 4, CSng(0.75), 127)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTCurve, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTCurve

See Also

Reference

ImGearARTCurve Members
ImageGear.ART Namespace