ImageGear .NET v25.2 - Updated
ImGearARTFilledPolygon Class
Members  Example 




ImageGear.Art Assembly > ImageGear.ART Namespace : ImGearARTFilledPolygon Class
Represents legacy ART Filled Polygon mark.
Object Model
ImGearARTFilledPolygon ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearPoint StructureImGearRectangle Structure
Syntax
'Declaration
 
Public Class ImGearARTFilledPolygon 
   Inherits ImGearARTMark
'Usage
 
Dim instance As ImGearARTFilledPolygon
public class ImGearARTFilledPolygon : ImGearARTMark 
public __gc class ImGearARTFilledPolygon : public ImGearARTMark 
public ref class ImGearARTFilledPolygon : public ImGearARTMark 
Example
// Create an array of 5 points for the 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 polygon.
ImGearRGBQuad igRGBQuad = new ImGearRGBQuad(40, 200, 40);
// Create polygon with highlight on.
ImGearARTFilledPolygon igARTFilledPolygon = new ImGearARTFilledPolygon(
    igPoints, igRGBQuad, true
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTFilledPolygon, ImGearARTCoordinatesType.IMAGE_COORD);
' Create an array of 5 points for the 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 polygon.
Dim igRGBQuad As New ImGearRGBQuad(40, 200, 40)
' Create polygon with highlight on.
Dim igARTFilledPolygon As New ImGearARTFilledPolygon( _
 igPoints, igRGBQuad, True)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTFilledPolygon, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTFilledPolygon

See Also

Reference

ImGearARTFilledPolygon Members
ImageGear.ART Namespace

Is this page helpful?
Yes No
Thanks for your feedback.