Class EmfPlusDrawLines

Class EmfPlusDrawLines

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.7.0)

The EmfPlusDrawlLines record specifies drawing a series of connected lines

public sealed class EmfPlusDrawLines : EmfPlusDrawingRecordType
   {
       private PointF[] points;
       public ushort pointCount { get; set; }
       public PointF this[int index]
       {
           get { return points[index]; }
       }
       public void AddPoint(PointF point)
       {
           if (points == null)
               points = new PointF[pointCount + 1];
           else if (points.Length <= pointCount)
               Array.Resize<PointF>(ref points, points.Length * 2);
           points[pointCount] = point;
           ++pointCount;
       }
   }

Inheritance

object MetaObject EmfPlusRecord EmfPlusDrawingRecordType EmfPlusDrawLines

Inherited Members

EmfPlusRecord.Type , EmfPlusRecord.Flags , EmfPlusRecord.Size , EmfPlusRecord.DataSize , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

EmfPlusDrawLines(EmfPlusRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusDrawLines class.

public EmfPlusDrawLines(EmfPlusRecord source)
   {
   }

Parameters

source EmfPlusRecord

The source.

Properties

ClosedShape

Gets or sets a value indicating whether [closed shape].

public bool ClosedShape
   {
      get;
      set;
   }

Property Value

bool

Compressed

Gets or sets a value indicating whether this Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusDrawClosedCurve is compressed.This bit indicates whether the PointData field specifies compressed data.If set, PointData specifies absolute locations in the coordinate space with 16-bit integer coordinates.If clear, PointData specifies absolute locations in the coordinate space with 32-bit floating-point coordinatesNote If the Relative flag (below) is set, this flag is undefined and MUST be ignored

public bool Compressed
   {
      get;
      set;
   }

Property Value

bool

ObjectId

Gets or sets the object identifier.The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+Object Table to draw the lines. The value MUST be zero to 63, inclusive.

public byte ObjectId
   {
      get;
      set;
   }

Property Value

byte

PointData

Gets or sets the point dataAn array of Count points that specify the starting and ending points of the lines to be drawn.

public PointF[] PointData
   {
      get;
      set;
   }

Property Value

PointF []

Relative

Gets or sets a value indicating whether this Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusDrawClosedCurve is relative.This bit indicates whether the PointData field specifies relative or absolute locations.If set, each element in PointData specifies a location in the coordinate space that is relativeto the location specified by the previous element in the array. In the case of the firstelement in PointData, a previous location at coordinates (0,0) is assumed. If clear,PointData specifies absolute locations according to the C flag.Note If this flag is set, the Compressed flag (above) is undefined and MUST be ignored

public bool Relative
    {
        get;
        set;
    }

Property Value

bool

 English