ImageGear for .NET
ImGearARTHollowPolygon Class
Members  Example 




Represents legacy ART Hollow Polygon mark.
Object Model
ImGearARTHollowPolygon ClassIImGearRGBQuad InterfaceImGearRectangle StructureImGearPoint StructureImGearRectangle StructureImGearPoint Structure
Syntax
'Declaration
 
Public Class ImGearARTHollowPolygon 
   Inherits ImGearARTMark
'Usage
 
Dim instance As ImGearARTHollowPolygon
public class ImGearARTHollowPolygon : ImGearARTMark 
public __gc class ImGearARTHollowPolygon : public ImGearARTMark 
public ref class ImGearARTHollowPolygon : public ImGearARTMark 
Example
// Create an array of 5 points for the hollow polygon.
ImGearPoint[] igPoints = new ImGearPoint[5];
igPoints[0] = new ImGearPoint(20, 20);
igPoints[1] = new ImGearPoint(200, 40);
igPoints[2] = new ImGearPoint(200, 60);
igPoints[3] = new ImGearPoint(120, 120);
igPoints[4] = new ImGearPoint(20, 40);
// Setup color for the hollow polygon.
ImGearRGBQuad igRGBQuad = new ImGearRGBQuad(40, 200, 40);
// Create hollow polygon with a width of 10 and highlight off.
ImGearARTHollowPolygon igARTHollowPolygon = new ImGearARTHollowPolygon(
    igPoints, igRGBQuad, 10, false
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTHollowPolygon, ImGearARTCoordinatesType.IMAGE_COORD);
' Create an array of 5 points for the hollow polygon.
Dim igPoints As ImGearPoint() = New ImGearPoint(4) {}
igPoints(0) = New ImGearPoint(20, 20)
igPoints(1) = New ImGearPoint(200, 40)
igPoints(2) = New ImGearPoint(200, 60)
igPoints(3) = New ImGearPoint(120, 120)
igPoints(4) = New ImGearPoint(20, 40)
' Setup color for the hollow polygon.
Dim igRGBQuad As New ImGearRGBQuad(40, 200, 40)
' Create hollow polygon with a width of 10 and highlight off.
Dim igARTHollowPolygon As New ImGearARTHollowPolygon( _
 igPoints, igRGBQuad, 10, False)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTHollowPolygon, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTHollowPolygon

See Also

Reference

ImGearARTHollowPolygon Members
ImageGear.ART Namespace

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback